#mito_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/1297868860606910545
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
hi! there might be some better options but at least initially I can say you could check if the Customer's current subscription is status:"trialing" and if it is, don't allow them to visit the CustomerPortal
Hello karllekko. I guess I can prevent subscription from updating if the user is in free trial mode. In my case, subscription options differ only in subscription payment interval. Thank you.
I don't think there's a better option really unfortuantely, this is a known limitation/quirk of the portal(updating a Subscription ends the existing trial) https://docs.stripe.com/customer-management#customer-portal-limitations:~:text=Customer modifications to a ; there's not really a great solution beyond limiting access to the portal
Thank you! I gave the suggested implementation some thought and came to conclusion that related problem with free trial occurs when the user wants to change plan, even if the current subscription status is active, as opposed to trialing. For example. a paying user of 3 months tries to change subscription form montly plan to yearly plan. Because both monthly and yearly plans offer free trial, he is now entered free trial mode, for yearly plan. It does not make sense to offer free trial for a user of 3 months. Does this situation also falls under limitations of customer portal umbrella or is possible to disable free trial for a session?
to be honest I was not aware the portal uses the trial period set on the Price. Can you just change this so you don't create the Price with a trial?
and then if you do want a trial, pass it on a per-subscription basis with trial_end etc when creating a Subscription.
I'm not even sure how you're creating Plans/Prices with built-in trials, that has been deprecated for a while and hidden from the docs and Dashboard as far as I know. Might help to see some IDs here like your plan_xxx/price_xxx of your monthly/yearly
Hey, taking over here. Let me know if there's any follow-up Qs I can answer!
Nope, that would be all. Thank you!
great, have a nice day!