payment bug resolve
This commit is contained in:
parent
9f859ef116
commit
f1716410e6
1 changed files with 2 additions and 1 deletions
|
@ -53,7 +53,8 @@ class CreditCardView(View):
|
||||||
stripe_utils = StripeUtils()
|
stripe_utils = StripeUtils()
|
||||||
charge = stripe_utils.make_charge(request.session['amount'],customer=customer.stripe_id)
|
charge = stripe_utils.make_charge(request.session['amount'],customer=customer.stripe_id)
|
||||||
template = 'templates/validated.html'
|
template = 'templates/validated.html'
|
||||||
context['msg'] = charge.get('status')
|
resp = charge.get('response_object')
|
||||||
|
context['msg'] = resp.get('status',None)
|
||||||
request.session['next'] = None
|
request.session['next'] = None
|
||||||
return render(request, template, context)
|
return render(request, template, context)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue