Merge pull request #8245 from scmmishra/webform-payment-redirect

fix: redirect after payment
This commit is contained in:
mergify[bot] 2019-08-22 17:18:41 +00:00 committed by GitHub
commit 7a1da3a9bd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -221,7 +221,7 @@ def get_context(context):
"payer_name": frappe.utils.get_fullname(frappe.session.user),
"order_id": doc.name,
"currency": self.currency,
"redirect_to": frappe.utils.get_url(self.route)
"redirect_to": frappe.utils.get_url(self.success_url or self.route)
}
# Redirect the user to this url