Merge pull request #7771 from saurabh6790/razorpay_subscription_fix
fix: if start date exist only then pass it while creating subscription
This commit is contained in:
commit
e29b6e8d53
1 changed files with 3 additions and 1 deletions
|
|
@ -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({
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue