Trial period on subscription plan change

820 views
Skip to first unread message

Ryan Wood

unread,
Jun 15, 2015, 10:54:40 AM6/15/15
to api-d...@lists.stripe.com
I’ve experienced a couple of issues and I’m not sure if they are bugs or not. At MoonClerk we allow users to change the amount of their subscriptions. We simply do all the work on Stripe behind the scenes to create a new plan and associated it with the customer’s subscription. When a subscription is trialing and we change the plan (say from monthly $5 to monthly $10), the trial period is reset and and plan starts immediately creating a payment. 

From the docs, it seemed to me that all the billing period stuff (current_period, trial, etc.) stays the same when the interval is same between plan but that’s not the case. Is that a bug of intentional. The API docs don’t speak to this.

- Ryan

Ryan Wood
Co-founder, CTO

Matthew Arkin

unread,
Jun 15, 2015, 11:01:02 AM6/15/15
to api-d...@lists.stripe.com, api-d...@lists.stripe.com
If you update the subscription to go from one plan with a trial to another plan with a trial, the trial will stay in tact. If the new plan doesn't have a trial, this doesn't happen.

The work around is pretty simple.

When you update the subscription, you can check if they're in a current trial and if yes, pass the current trial_end as trial_end.

Matt Arkin 


Sent from Mailbox


--
You received this message because you are subscribed to the Google Groups "Stripe API Discussion" group.
To post to this group, send email to api-d...@lists.stripe.com.
Visit this group at http://groups.google.com/a/lists.stripe.com/group/api-discuss/.

To unsubscribe from this group and stop receiving emails from it, send an email to api-discuss...@lists.stripe.com.

Reply all
Reply to author
Forward
0 new messages