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:
parent
a5c2fc7185
commit
8f66c39ff5
4 changed files with 13 additions and 10 deletions
|
@ -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,
|
||||
|
|
Reference in a new issue