From 5b8a26eeb3db3b2fdb0662136066a1a54f7fd703 Mon Sep 17 00:00:00 2001 From: "M.Ravi" Date: Fri, 23 Jun 2017 00:31:08 +0530 Subject: [PATCH] Fixed a blunder mistake. Was using name instead of email --- datacenterlight/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacenterlight/views.py b/datacenterlight/views.py index 9708eb24..e4329b89 100644 --- a/datacenterlight/views.py +++ b/datacenterlight/views.py @@ -342,7 +342,7 @@ class PaymentOrderView(FormView): # Get or create stripe customer - customer = StripeCustomer.get_or_create(email=user.get('name'), + customer = StripeCustomer.get_or_create(email=user.get('email'), token=token) if not customer: form.add_error("__all__", "Invalid credit card")