#davidcharles9114
1 messages · Page 1 of 1 (latest)
Hi
You can't increase that.
One option is create a first subscirption with 720 days trial
and before expiration in your integration, you extend the trial/create another phase if you are using Subscription Schedule
Can you clear more?
You mean,
await stripe.subscriptionSchedules.create({
from_subscription: 'existingSubscriptionId',
start_date: 1680716828, // The date to execute
trial_end: 1680716828,
})
You create a first Subscription with 720 days trial.
After 720 days, just before trial ends, you update the Subscirption with the remaining trial days
https://stripe.com/docs/api/subscriptions/update
But how I know when the subscription ends,
I don't want to create cron job for checking,.
The Stripe auto support feature to update trial end?
as you suggest Subscription Schedule
My purpose: First I have subscription with trial day 1 year.
You can set webhooks for that
After that I want to extend subscription plus 2 year?
You can listen to this event customer.subscription.trial_will_end
In your case, if you create a Subscription with 720 days trials, you'll be notified after 717 days (before 3 days)
and then you extend the Subscription trial
oh that's good idea,
Happy to help!