Skip to content

Commit

Permalink
Merge pull request #122 from ruthra-kumar/braintree_success_message_e…
Browse files Browse the repository at this point in the history
…xception

fix: exception on braintree success page
  • Loading branch information
ruthra-kumar authored Nov 21, 2024
2 parents 9030aec + 2422937 commit 7069b59
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 7069b59

Please sign in to comment.