Use the customer information, not an existing subscription, to determine whether the button should say "Start Free Trial" or "Subscribe"

This commit is contained in:
Joseph Schorr 2014-04-23 01:17:34 -04:00
parent a5c2fc7185
commit 8f66c39ff5
4 changed files with 13 additions and 10 deletions

View file

@ -18,6 +18,8 @@ def carderror_response(exc):
def subscription_view(stripe_subscription, used_repos):
view = {
'hasSubscription': True,
'isExistingCustomer': True,
'currentPeriodStart': stripe_subscription.current_period_start,
'currentPeriodEnd': stripe_subscription.current_period_end,
'plan': stripe_subscription.plan.id,