Going back to /yr

master
Nick Sergeant 2012-08-21 10:15:12 -04:00
parent 04dc3ecbd8
commit 9af7a0b27f
5 changed files with 5 additions and 18 deletions

View File

@ -45,7 +45,7 @@
{% block content %}
<section class="snipts" id="snipts">
{% if not request.user.profile.is_pro %}
<div class="alert alert-info site-notice"><a href="/pro/">Snipt Pro</a>: Support the development of Snipt and get exclusive features for only $4/month or $40/year.</div>
<div class="alert alert-info site-notice"><a href="/pro/">Snipt Pro</a>: Support the development of Snipt and get exclusive features for only $19/year.</div>
{% endif %}
{% with 'true' as detail %}
{% include "snipts/snipt-list.html" %}

View File

@ -14,7 +14,7 @@
{% block content %}
<section class="snipts" id="snipts">
{% if not request.user.profile.is_pro %}
<div class="alert alert-info site-notice"><a href="/pro/">Snipt Pro</a>: Support the development of Snipt and get exclusive features for only $4/month or $40/year.</div>
<div class="alert alert-info site-notice"><a href="/pro/">Snipt Pro</a>: Support the development of Snipt and get exclusive features for only $19/year.</div>
{% endif %}
{% autopaginate snipts 10 %}
{% for snipt in snipts %}

View File

@ -27,17 +27,8 @@
<form class="form-horizontal" id="pro-signup" method="post" action="/pro/signup/complete/">
<fieldset>
<div class="payment-loading"><span>Please wait&hellip;</span></div>
<legend>You're awesome.</legend>
<legend>$19 USD will be charged to your card annually. Also, you rock. Tell yourself that every year, too.</legend>
<div class="payment-errors alert alert-error"></div>
<div class="control-group">
<label class="control-label" for="plan">Billing plan:</label>
<div class="controls">
<select id="plan" name="plan">
<option value="pro-monthly">$4/month</option>
<option value="pro-yearly">$40/year (savings of $8)</option>
</select>
</div>
</div>
<div class="control-group">
<label class="control-label" for="name">Name on card:</label>
<div class="controls">

View File

@ -29,7 +29,7 @@
{% if request.user.profile.is_pro %}
<h3>You're already a Pro. You know that ;)</h3>
{% else %}
<h3>Pro accounts are just $4/month or $40/year.</h3>
<h3>Pro accounts are just $19/year.</h3>
<h4><a href="/pro/signup/" class="btn btn-large btn-success">Sign Up Now</a></h4>
{% endif %}
</div>

View File

@ -106,11 +106,7 @@ def pro_signup_complete(request):
token = request.POST['token']
stripe.api_key = '5XchbRsWVbksTRWSX67kOdBnCf01DxSh'
plan = 'snipt-pro-monthly'
if 'plan' in request.POST:
if request.POST['plan'] == 'pro-yearly':
plan = 'snipt-pro-yearly'
plan = 'snipt-pro'
customer = stripe.Customer.create(
card = token,