소스 검색

[fix] pass request type as Subscription Notification

pull/2/head
Saurabh 6 년 전
부모
커밋
47228bdae1
2개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  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 파일 보기

@@ -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 파일 보기

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



불러오는 중...
취소
저장