Merge pull request #14320 from zerodha/save_doc

fix(Razorpay Settings): Save Errored Integration Request
This commit is contained in:
gavin 2021-10-01 08:47:17 +05:30 committed by GitHub
commit fc1891f80b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -371,6 +371,7 @@ def capture_payment(is_sandbox=False, sanbox_response=None):
doc = frappe.get_doc("Integration Request", doc.name)
doc.status = "Failed"
doc.error = frappe.get_traceback()
doc.save()
frappe.log_error(doc.error, '{0} Failed'.format(doc.name))