Allow custom confirmation page (#5835)
This commit is contained in:
parent
47a9c05b72
commit
8fc2af64ad
1 changed files with 3 additions and 0 deletions
|
|
@ -102,6 +102,9 @@ class BraintreeSettings(Document):
|
|||
try:
|
||||
custom_redirect_to = frappe.get_doc(self.data.reference_doctype,
|
||||
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:
|
||||
frappe.log_error(frappe.get_traceback())
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue