simplify pricing page now that monthly is gone

This commit is contained in:
Son NK 2019-08-19 21:38:34 +02:00
parent 5ff317538c
commit 7cb1c219ed
2 changed files with 1 additions and 15 deletions

View file

@ -85,16 +85,6 @@
<div id="card-errors" role="alert" class="text-danger"></div>
</div>
<div class="form-group">
<div class="form-label">Plan</div>
<div class="custom-controls-stacked">
<label class="custom-control custom-radio custom-control-inline">
<input type="radio" class="custom-control-input" name="plan" value="yearly" checked>
<span class="custom-control-label">Yearly</span>
</label>
</div>
</div>
<button type="submit" class="btn btn-success">Upgrade</button>
</form>
</div>

View file

@ -31,11 +31,7 @@ def pricing():
raise Exception("user email is already used on stripe!")
if request.method == "POST":
plan_str = request.form.get("plan") # yearly
if plan_str == "yearly":
plan = PlanEnum.yearly
else:
raise Exception("Plan must be either yearly or monthly")
plan = PlanEnum.yearly
stripe_token = request.form.get("stripeToken")
LOG.d("stripe card token %s for plan %s", stripe_token, plan)