Fixed a blunder mistake. Was using name instead of email

This commit is contained in:
M.Ravi 2017-06-23 00:31:08 +05:30
parent e5929b8f76
commit 5b8a26eeb3

View file

@ -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")