#vishnu-sankar_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/1238021229294911570
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
In https://docs.stripe.com/billing/subscriptions/cancel#prorate-for-usage-based-billing:
If the subscription is part of the way through a paid billing period, you can prorate the cancellation by passing the prorate parameter.
When you prorate a cancellation you can optionally invoice for:
- Outstanding prorations
- Metered usage
If you don’t prorate the subscription, all metered usage is discarded and the customer does not receive any credit for any potential prorations.
Only when prorate is set true when canceling a subscription, then the metered billing submitted previously will be charged
Thanks for the response. Yes, it’s easy to do through API. But how to immediately cancel the subscription if the customer is cancelling it through customer portal?
Do you plan to bill the customer for the usage submitted when canceling the subscription?