Sfoglia il codice sorgente

[fix] if redirect uri exists then automatically redirect the user

pull/2/head
Saurabh 6 anni fa
parent
commit
969303dc92
1 ha cambiato i file con 9 aggiunte e 0 eliminazioni
  1. +9
    -0
      payments/templates/pages/payment-success.html

+ 9
- 0
payments/templates/pages/payment-success.html Vedi File

@@ -15,4 +15,13 @@
<style> <style>
{% include "templates/styles/card_style.css" %} {% include "templates/styles/card_style.css" %}
</style> </style>
<script>
frappe.ready(function() {
if('{{ frappe.form_dict.redirect_to or "" }}'){
setTimeout(function(){
window.location.href = '{{ frappe.form_dict.redirect_to }}';
}, 6000);
}
})
</script>
{% endblock %} {% endblock %}

Caricamento…
Annulla
Salva