#neha_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/1215810421139968000
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- neha_docs, 9 hours ago, 25 messages
- neha_best-practices, 15 hours ago, 110 messages
- neha_docs, 21 hours ago, 26 messages
- neha_webhooks, 1 day ago, 66 messages
- neha_unexpected, 1 day ago, 73 messages
- neha_best-practices, 1 day ago, 47 messages
And reset the billing cycle of B. is there a way to do this by updating the subscription? Or do I need to cancel A and then start B
For example, user purchases a $20 subscription. Midmonth, they go to upgrade to $100 subscription. I want to credit them $10, and then bill them for 100, resulting in a total charge of 90, and most importantly, make sure the billing cycle is reset
So it’s not prorating the upgrade. It’s prorating the credit and then billing in full
Does that make sense?
Hi, can you confirm what 'credit them' means in this case?
Like how stripe automatically adds a credit to someone’s account when something about the subscription changes and they owe less
For example if a user downgrades then stripe adds the pro rated credit
I forget the type name of the adjustment
I see, I wanted to make sure that we were on the same page.
The document that you shared is the right document for what you want to do. The following code block shows you that when you update the Subscription, the billing cycle anchor will be reset to now and it will be prorated. https://docs.stripe.com/billing/subscriptions/prorations
{ billing_cycle_anchor: 'now', proration_behavior: 'create_prorations', }
With this, I recommend that you test this using the test API key and confirm fully this is what you want.