Skip to content

Commit

Permalink
Merge pull request #54 from saullo/develop
Browse files Browse the repository at this point in the history
fix: update stripe redirect URL to include reference doctype
  • Loading branch information
uhrjun authored Nov 12, 2023
2 parents 30e5deb + 7d71eb4 commit 523b184
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,9 @@ def finalize_request(self):
if custom_redirect_to:
redirect_to = custom_redirect_to

redirect_url = "payment-success"
redirect_url = "payment-success?doctype={}&docname={}".format(
self.data.reference_doctype, self.data.reference_docname
)

if self.redirect_url:
redirect_url = self.redirect_url
Expand Down

0 comments on commit 523b184

Please sign in to comment.