[fix] pass request type as Subscription Notification
This commit is contained in:
parent
3ce7ba4e5d
commit
0d260be0aa
3 changed files with 6 additions and 4 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue