Add code to differentiate between subscription and non-subscription in js
This commit is contained in:
parent
9faf897818
commit
a32a5af5a3
2 changed files with 5 additions and 0 deletions
|
|
@ -729,6 +729,10 @@ class OrderConfirmationView(DetailView, FormView):
|
|||
reverse('datacenterlight:index')
|
||||
},
|
||||
'stripe_key': settings.STRIPE_API_PUBLIC_KEY,
|
||||
'is_subscription': 'true' if (
|
||||
'generic_payment_type' not in request.session or
|
||||
(request.session['generic_payment_details']['recurring'])
|
||||
) else 'false'
|
||||
})
|
||||
logger.debug("Request %s" % create_incomplete_intent_request(
|
||||
self.request))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue