Ver a proveniência

Allow custom confirmation page (#5835)

pull/2/head
Charles-Henri Decultot há 6 anos
committed by Rushabh Mehta
ascendente
cometimento
94898a01bd
1 ficheiros alterados com 3 adições e 0 eliminações
  1. +3
    -0
      payments/payment_gateways/doctype/braintree_settings/braintree_settings.py

+ 3
- 0
payments/payment_gateways/doctype/braintree_settings/braintree_settings.py Ver ficheiro

@@ -102,6 +102,9 @@ class BraintreeSettings(Document):
try: try:
custom_redirect_to = frappe.get_doc(self.data.reference_doctype, custom_redirect_to = frappe.get_doc(self.data.reference_doctype,
self.data.reference_docname).run_method("on_payment_authorized", self.flags.status_changed_to) self.data.reference_docname).run_method("on_payment_authorized", self.flags.status_changed_to)
braintree_success_page = frappe.get_hooks('braintree_success_page')
if braintree_success_page:
custom_redirect_to = frappe.get_attr(braintree_success_page[-1])(self.data)
except Exception: except Exception:
frappe.log_error(frappe.get_traceback()) frappe.log_error(frappe.get_traceback())




Carregando…
Cancelar
Guardar