Merge pull request #14320 from zerodha/save_doc
fix(Razorpay Settings): Save Errored Integration Request
This commit is contained in:
commit
fc1891f80b
1 changed files with 1 additions and 0 deletions
|
|
@ -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))
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue