Show billing for comp'd accounts.
parent
8a0ed4169a
commit
484892b1fe
|
@ -32,6 +32,7 @@
|
||||||
<div class="def" data-title="Plan">
|
<div class="def" data-title="Plan">
|
||||||
{{ name }}
|
{{ name }}
|
||||||
</div>
|
</div>
|
||||||
|
{% if status != 'inactive' %}
|
||||||
<div class="def" data-title="Price">
|
<div class="def" data-title="Price">
|
||||||
${{ amount|currency_convert }}.00 USD / {{ interval }}
|
${{ amount|currency_convert }}.00 USD / {{ interval }}
|
||||||
</div>
|
</div>
|
||||||
|
@ -53,6 +54,7 @@
|
||||||
Cancel subscription
|
Cancel subscription
|
||||||
</button>
|
</button>
|
||||||
</form>
|
</form>
|
||||||
|
{% endif %}
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -80,6 +80,12 @@ def team_billing(request, username):
|
||||||
if team.owner != request.user:
|
if team.owner != request.user:
|
||||||
raise Http404
|
raise Http404
|
||||||
|
|
||||||
|
if team.stripe_id == 'COMP':
|
||||||
|
return {
|
||||||
|
'name': 'Promotional trial',
|
||||||
|
'team': team
|
||||||
|
}
|
||||||
|
|
||||||
stripe.api_key = os.environ.get('STRIPE_SECRET_KEY',
|
stripe.api_key = os.environ.get('STRIPE_SECRET_KEY',
|
||||||
settings.STRIPE_SECRET_KEY)
|
settings.STRIPE_SECRET_KEY)
|
||||||
customer = stripe.Customer.retrieve(team.stripe_id)
|
customer = stripe.Customer.retrieve(team.stripe_id)
|
||||||
|
|
Loading…
Reference in New Issue