#admiral-checkout-trial
1 messages ยท Page 1 of 1 (latest)
@odd oasis hello, I'm happy to help! Can you give me an example Subscription id sub_12345 for me to look at?
admiral-checkout-trial
sub_1NVFySCmp8xvPA29ftKc7A7U
so let me explain you briefly, we're offering our customers promocodes which gives them 1 year subscription, after it expires, we wanna give them the option of pay at checkout and renew for another year, with 1 day free trial.
however, when I set trial_period_days to 1, stripe automatically ends subscription within a day and cancels it.
If looks like my colleague explained all of this https://discord.com/channels/841573134531821608/841573134531821616
I know, but I didn't get convinced, I am sure that I set cancel_at_period_end to false, even you can see its value in subscription.
I mean that Subscription is active and was not canceled so what's the problem?
it is active but it will cancel in one day, not a year, I want 1 day free trial followed by a year subscription.
Why do you say it will cancel in one day?
sorry maybe I need to change my question, my question is after 1 year, the subscription will be cancelled ?
so after 1 day free trial, 1 year subsacription will be billed, and after that, it get cancelled? because we set "cancel_at_period_end" to false?
subscription shouldn't auto renew end of the year
this is what I want
๐
The Subscription will renew forever.
If you don't want that, you have to write custom code to make sure it cancels after one year. As the developer you control all of this
so there is no way to set it in stripe in way that we have 1 day free trial, followed by a year subscription and set auto renew to false right?
There is, but you need to write custom code for it yourself
After Checkout creates the Subscription you can modify that Subscription so that it only lasts a year. The best option is to use our SubscriptionSchedules API to schedule future changes: https://stripe.com/docs/api/subscription_schedules
and would you please tell me the attributes I can use to end it after a year using SubscriptionSchedules?
you want to change that to 1 so that it only does 1 iteration
and you want to set https://stripe.com/docs/api/subscription_schedules/create#create_subscription_schedule-end_behavior to cancel so that it stops after that iteration
and you do that after Checkout completes and creates the Subscription
Are you testing now?
Would be a lot easier if you did this in real time and I can help if it doesn't work
I'm not allowed to use real time unfortunately, I have limited access as my role defines in this company.
Gotcha! I recommend working with our support team if you have follow up questions in that case instead of Discord. You can contact them at https://support.stripe.com/contact/ and that way you can reply on the email thread as you make progress
keep that in mind for sure ๐ thanks for everything ๐