[fix] pass request type as Subscription Notification

This commit is contained in:
Saurabh 2018-10-08 13:49:12 +05:30
parent 3ce7ba4e5d
commit 0d260be0aa
3 changed files with 6 additions and 4 deletions

View file

@ -27,7 +27,7 @@
"label": "Integration Type",
"length": 0,
"no_copy": 0,
"options": "\nHost\nRemote",
"options": "\nHost\nRemote\nSubscription Notification",
"permlevel": 0,
"precision": "",
"print_hide": 0,
@ -86,7 +86,7 @@
"label": "Status",
"length": 0,
"no_copy": 0,
"options": "\nQueued\nAuthorized\nCompleted\nCancelled\nFailed\nSubscription Notification\n",
"options": "\nQueued\nAuthorized\nCompleted\nCancelled\nFailed\n",
"permlevel": 0,
"precision": "",
"print_hide": 0,

View file

@ -381,7 +381,8 @@ def ipn_handler():
doc = frappe.get_doc({
"data": json.dumps(frappe.local.form_dict),
"doctype": "Integration Request",
"status": "Subscription Notification"
"integration_type": "Subscription Notification",
"status": "Queued"
}).insert(ignore_permissions=True)
frappe.db.commit()

View file

@ -345,7 +345,8 @@ def razorpay_subscription_callback():
doc = frappe.get_doc({
"data": json.dumps(frappe.local.form_dict),
"doctype": "Integration Request",
"status": "Subscription Notification"
"integration_type": "Subscription Notification",
"status": "Queued"
}).insert(ignore_permissions=True)
frappe.db.commit()