#crehbichler_best-practices
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1379076843163881547
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
hi there!
After my customer subscribes for 2 or 3 years, I want to switch them to 1 year after the initial period ends. I figured subscription schedules would be best practice in this case.
yep
but I am wondering when in the flow I should create the subscription schedule.
that's up to you. you can either directly create a subscription schedule, or start with a regular subscription that you then convert into a schedule
based on your use case, it looks like the customer already has an active subscription? in this case you would convert the existing subscription into a schedule.
yeah, I have both cases. Either a new subscription (directly to a multi year plan) where I want to add the 2nd phase with 1yr, but I also have this case when the customer already has a 1y subscription. We let them commit for e.g. 3 years (with discount), but I would add again the 2nd phase with 1yr
got it.
it's maybe better two handle the 2 cases in a different way though... let's say for existing subscription, upgrade from 1yr to 3yr, would you recommend using a webhook event for creating the schedule with the 2nd phase with the switch back to 1 yr?
upgrade from 1yr to 3yr
how does the customer does the upgrade? using the customer portal, or your own UI?
own UI
got it. yes it would make sense to use webhook events to know when the subscription is upgraded, and convert it to a schedule when that happens.
perfect, ok then I will maybe do the subscription create in the same way. use the webhook event to know when the subscription was created with a muliti year plan and convert it to a schedule there. is this a reasonable thing to do?
yes that will work. make sure to test all of this in test mode with Test Clocks to make sure it works as expected
https://docs.stripe.com/billing/testing/test-clocks
will do, thank you for the quick help, appreciate it!