瀏覽代碼

check for subscription id

pull/2/head
Saurabh 6 年之前
父節點
當前提交
547863149c
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      payments/payment_gateways/doctype/paypal_settings/paypal_settings.py

+ 1
- 1
payments/payment_gateways/doctype/paypal_settings/paypal_settings.py 查看文件

@@ -293,7 +293,7 @@ def create_recurring_profile(token, payerid):
addons = data.get("addons")
subscription_details = data.get("subscription_details")

if data['subscription_id'] and addons:
if data.get('subscription_id') and addons:
updating = True
manage_recurring_payment_profile_status(data['subscription_id'], 'Cancel', params, url)



Loading…
取消
儲存