ソースを参照

fix: if start date exist only then pass it while creating subscription

pull/2/head
Saurabh 6年前
コミット
84420b55c9
1個のファイルの変更3行の追加1行の削除
  1. +3
    -1
      payments/payment_gateways/doctype/razorpay_settings/razorpay_settings.py

+ 3
- 1
payments/payment_gateways/doctype/razorpay_settings/razorpay_settings.py ファイルの表示

@@ -132,11 +132,13 @@ class RazorpaySettings(Document):

subscription_details = {
"plan_id": kwargs.get('subscription_details').get("plan_id"),
"start_at": cint(start_date),
"total_count": kwargs.get('subscription_details').get("billing_frequency"),
"customer_notify": kwargs.get('subscription_details').get("customer_notify")
}

if start_date:
subscription_details['start_at'] = cint(start_date)

if kwargs.get('addons'):
convert_rupee_to_paisa(**kwargs)
subscription_details.update({


読み込み中…
キャンセル
保存