diff --git a/payments/payment_gateways/doctype/paypal_settings/paypal_settings.py b/payments/payment_gateways/doctype/paypal_settings/paypal_settings.py index 9fa3164..3d4be38 100644 --- a/payments/payment_gateways/doctype/paypal_settings/paypal_settings.py +++ b/payments/payment_gateways/doctype/paypal_settings/paypal_settings.py @@ -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() diff --git a/payments/payment_gateways/doctype/razorpay_settings/razorpay_settings.py b/payments/payment_gateways/doctype/razorpay_settings/razorpay_settings.py index 0eb41e5..3cca99e 100644 --- a/payments/payment_gateways/doctype/razorpay_settings/razorpay_settings.py +++ b/payments/payment_gateways/doctype/razorpay_settings/razorpay_settings.py @@ -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()