Fix token bug in stripe payments
This commit is contained in:
parent
457b619647
commit
04780cb3fa
3 changed files with 3 additions and 3 deletions
|
@ -1249,7 +1249,7 @@ def subscribe(user, plan, token, accepted_plans):
|
|||
if not user.stripe_id:
|
||||
# Check if a non-paying user is trying to subscribe to a free plan
|
||||
if not plan_found['price'] == 0:
|
||||
# They want a real paying plan, create the customerand plan
|
||||
# They want a real paying plan, create the customer and plan
|
||||
# simultaneously
|
||||
card = token
|
||||
cus = stripe.Customer.create(email=user.email, plan=plan, card=card)
|
||||
|
|
Reference in a new issue