Handle POST with no plans.
parent
bf60aa76ed
commit
a28215412b
2
views.py
2
views.py
|
@ -104,6 +104,8 @@ def pro_complete(request):
|
||||||
token = request.POST['token']
|
token = request.POST['token']
|
||||||
stripe.api_key = STRIPE_SECRET_KEY
|
stripe.api_key = STRIPE_SECRET_KEY
|
||||||
|
|
||||||
|
plan = 'snipt-monthly'
|
||||||
|
|
||||||
if request.POST['plan'] == 'monthly':
|
if request.POST['plan'] == 'monthly':
|
||||||
plan = 'snipt-monthly'
|
plan = 'snipt-monthly'
|
||||||
elif request.POST['plan'] == 'yearly':
|
elif request.POST['plan'] == 'yearly':
|
||||||
|
|
Loading…
Reference in New Issue