From f1716410e6622491864f683f56f8647672183233 Mon Sep 17 00:00:00 2001 From: Tom Date: Wed, 4 May 2016 17:59:25 +0000 Subject: [PATCH] payment bug resolve --- membership/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/membership/views.py b/membership/views.py index fe49b61e..9115f578 100644 --- a/membership/views.py +++ b/membership/views.py @@ -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)