Handle POST with no plans.

master
Nick Sergeant 2014-05-04 08:14:54 -04:00
parent bf60aa76ed
commit a28215412b
1 changed files with 2 additions and 0 deletions

View File

@ -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':