simplify pricing page now that monthly is gone
This commit is contained in:
parent
5ff317538c
commit
7cb1c219ed
|
@ -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>
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue