diff --git a/payments/payment_gateways/doctype/braintree_settings/braintree_settings.py b/payments/payment_gateways/doctype/braintree_settings/braintree_settings.py index 5c0fe801..6f694a90 100644 --- a/payments/payment_gateways/doctype/braintree_settings/braintree_settings.py +++ b/payments/payment_gateways/doctype/braintree_settings/braintree_settings.py @@ -262,7 +262,9 @@ def create_charge_on_braintree(self): if custom_redirect_to: redirect_to = custom_redirect_to - redirect_url = "payment-success" + redirect_url = ( + f"payment-success?doctype={self.data.reference_doctype}&docname={self.data.reference_docname}" + ) else: status = "Error" redirect_url = "payment-failed"