Explorar el Código

[fix] pass request type as Subscription Notification

pull/2/head
Saurabh hace 6 años
padre
commit
47228bdae1
Se han modificado 2 ficheros con 4 adiciones y 2 borrados
  1. +2
    -1
      payments/payment_gateways/doctype/paypal_settings/paypal_settings.py
  2. +2
    -1
      payments/payment_gateways/doctype/razorpay_settings/razorpay_settings.py

+ 2
- 1
payments/payment_gateways/doctype/paypal_settings/paypal_settings.py Ver fichero

@@ -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()



+ 2
- 1
payments/payment_gateways/doctype/razorpay_settings/razorpay_settings.py Ver fichero

@@ -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()



Cargando…
Cancelar
Guardar