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