소스 검색

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({


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