Check key existence
This commit is contained in:
parent
114dbd8242
commit
481f13d20c
1 changed files with 1 additions and 2 deletions
|
@ -596,7 +596,7 @@ class OrderConfirmationView(DetailView):
|
||||||
|
|
||||||
if ('generic_payment_type' not in request.session or
|
if ('generic_payment_type' not in request.session or
|
||||||
(request.session['generic_payment_details']['recurring'])):
|
(request.session['generic_payment_details']['recurring'])):
|
||||||
if request.session['generic_payment_details']['recurring']:
|
if 'generic_payment_details' in request.session:
|
||||||
amount_to_be_charged = (
|
amount_to_be_charged = (
|
||||||
round(
|
round(
|
||||||
request.session['generic_payment_details']['amount'],
|
request.session['generic_payment_details']['amount'],
|
||||||
|
@ -731,7 +731,6 @@ class OrderConfirmationView(DetailView):
|
||||||
})
|
})
|
||||||
|
|
||||||
if 'generic_payment_type' in request.session:
|
if 'generic_payment_type' in request.session:
|
||||||
|
|
||||||
stripe_cus = StripeCustomer.objects.filter(
|
stripe_cus = StripeCustomer.objects.filter(
|
||||||
stripe_id=stripe_api_cus_id
|
stripe_id=stripe_api_cus_id
|
||||||
).first()
|
).first()
|
||||||
|
|
Loading…
Reference in a new issue