#mito_best-practices

1 messages ¡ Page 1 of 1 (latest)

heady thornBOT
#

👋 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.

visual arch
#

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

analog grail
#

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.

visual arch
analog grail
#

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?

visual arch
#

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

heady thornBOT
analog grail
#

I think I messed something up.

#

My initial question is irrelevant.

stoic island
#

Hey, taking over here. Let me know if there's any follow-up Qs I can answer!

analog grail
#

Nope, that would be all. Thank you!

stoic island
#

great, have a nice day!