Small code reorganizing
This commit is contained in:
parent
5c99dd4da7
commit
5393ffa10d
1 changed files with 2 additions and 2 deletions
|
@ -517,8 +517,8 @@ class OrderConfirmationView(DetailView):
|
||||||
'response_object').stripe_plan_id}])
|
'response_object').stripe_plan_id}])
|
||||||
stripe_subscription_obj = subscription_result.get('response_object')
|
stripe_subscription_obj = subscription_result.get('response_object')
|
||||||
# Check if the subscription was approved and is active
|
# Check if the subscription was approved and is active
|
||||||
if stripe_subscription_obj is None or \
|
if (stripe_subscription_obj is None
|
||||||
stripe_subscription_obj.status != 'active':
|
or stripe_subscription_obj.status != 'active'):
|
||||||
msg = subscription_result.get('error')
|
msg = subscription_result.get('error')
|
||||||
messages.add_message(self.request, messages.ERROR, msg,
|
messages.add_message(self.request, messages.ERROR, msg,
|
||||||
extra_tags='failed_payment')
|
extra_tags='failed_payment')
|
||||||
|
|
Loading…
Reference in a new issue