check for subscription id
This commit is contained in:
parent
54e575b824
commit
92e6ed0425
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue