#toby_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/1295925660719775864
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi! Can I clarify if you would like the customer to be able to cancel immediately via the Billing portal when subscription becomes past due?
We have it set so the customer can be past due up to 2 weeks before Stripe automatically cancels the subscription. But if the customer goes to manage their subscription in the Billing Portal and clicks “Cancel”, we’d like to have their subscription cancel immediately… so it doesn’t keep trying to bill their card.
But ordinarily we like the “cancel at period end” behavior, for customers with a normal, active subscription.
Thanks for clarification! You can either set the portal configuration to immediately with features.subscription_cancel.mode [0] or update the portal's settings under Cancellations in the Dashboard [1].
[0] https://docs.stripe.com/api/customer_portal/configurations/create#create_portal_configuration-features-subscription_cancel-mode
[1] https://dashboard.stripe.com/settings/billing/portal
Ok. And since we want two behaviors:
- If the subscription status is active we want “cancel at period end”
- If the subscription status is past due we want “cancel immediately”
Since we want two different configurations, we can’t just use the Dashboard since it only lets us use a single, default configuration, right?
So we need to create a second configuration, with the API, and then send customers to that alternate configuration if they’re past due. Is that right?
Yes, since you require different cancellation outcomes for different subscription status, you can set a default configuration for one outcome in the dashboard and create a second configuration when the second outcome is required.
Got it. I’d love if this were just a setting in the dashboard. But I understand now. Thanks for your help!