Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I add trial days to an existing subscription? #550

Closed
josepfm opened this issue Aug 22, 2018 · 5 comments · Fixed by #884
Closed

How can I add trial days to an existing subscription? #550

josepfm opened this issue Aug 22, 2018 · 5 comments · Fixed by #884

Comments

@josepfm
Copy link

josepfm commented Aug 22, 2018

I want to add trial days after I create a subscription, so that the first payment is made when I create it and the next payment when the trial days are over.

Any ideas?

@josepfm josepfm changed the title Cancel() not work How can I add trial days to an existing subscription? Aug 22, 2018
@swirlingskirts
Copy link

My approach would be to create the subscription with trial, then perform a one-off charge for whatever the start fee is.

@driesvints
Copy link
Member

At the moment there's no functionality that adds trial days to an existing subscription. The Stripe docs detail that this is possible but will result in a proration (which seems obvious): https://stripe.com/docs/billing/subscriptions/changing

I can see this being useful in some cases so I'll tag this as a feature request. Since this is nothing we'll use ourselves at anytime soon we'll probably won't develop this ourselves. We are however welcoming PRs for this.

@dotmbf
Copy link

dotmbf commented Mar 1, 2019

@driesvints Couldn't you just update it through the Stripe API manually (not using cashier, but sending the data throuh metadata)
and then updating your user's subscription? (trial_ends_at and ends_at)?

@driesvints
Copy link
Member

@mikkelbfriis not sure. Would have to dig into the api and don't have the time for that atm.

@driesvints
Copy link
Member

I've sent in a PR for this here: #550

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants