From a28215412ba176b406436872f7e70aa2ca128f42 Mon Sep 17 00:00:00 2001 From: Nick Sergeant Date: Sun, 4 May 2014 08:14:54 -0400 Subject: [PATCH] Handle POST with no plans. --- views.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/views.py b/views.py index 655a0bc..f61cb9f 100644 --- a/views.py +++ b/views.py @@ -104,6 +104,8 @@ def pro_complete(request): token = request.POST['token'] stripe.api_key = STRIPE_SECRET_KEY + plan = 'snipt-monthly' + if request.POST['plan'] == 'monthly': plan = 'snipt-monthly' elif request.POST['plan'] == 'yearly':