#samratshrestha_docs
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/1272620785613279394
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Taking a look now
So you can allow for upgrades and downgrades on any of the Customers Subscriptions via the Billing Portal, however you can't adjust the behavior such that prorations are billed differently depending on what they choose. You can only specify uniform proration behavior across all upgrades and downgrades for any given Billing Portal Session.
In order to build this outside of the Customer Billing Portal, you would need to have your own UI, yes. I would recommend reading through the upgrades/downgrades guide to understand the default behavior for simply updating a Subscription without using Subscription Schedules: https://docs.stripe.com/billing/subscriptions/upgrade-downgrade
If that doesn't suit your use-case, then Subscription Schedules are likely the next best step
Okay thanks, I also had few other questions.
If I select monthly in billing period while creating price. How many days is it equivalent? Is there some logic to it?
How does stripe determine if the subscription is upgraded or downgraded. Suppose I had a plan of Annual 100$ for personal use(Plan A) and Monthly plan of 120$ per team(Plan B) So if i switch from Plan A to Plan B then what's the logic behind determining if its a upgrade or dowgrade in subscription.
Hello, two-shoes is stepping out but I can help. Catching up in this thread...
If I select monthly in billing period while creating price. How many days is it equivalent? Is there some logic to it
Monthly prices cycle by a billing cycle anchor within the month. So if you have a subscription anchored to the 5th, it will cycle on the 5th of each month even if there can be 28-31 days between each cycle. Prorations are calculated based on the specific cycle's length and how much time has passed within it.
https://docs.stripe.com/billing/subscriptions/billing-cycle
How does stripe determine if the subscription is upgraded or downgraded. Suppose I had a plan of Annual 100$ for personal use(Plan A) and Monthly plan of 120$ per team(Plan B) So if i switch from Plan A to Plan B then what's the logic behind determining if its a upgrade or dowgrade in subscription.
Looking for the exact formula but basically we calculate how much of the cycle that the user paid for has already passed and credit that against what they will pay on the new price. So if you switch from A to B halfway through the year, we'd credit $50 against first month at the $120 price.
Not finding a doc that lays out the specific formulate but that is the basic process. Calculate how far through the period we are down to the second, credit for that fraction times the full amount times what the user paid for this cycle, then debit the time remaining at the new price if you are keeping the same cycle or debit a full cycle amount if the proration starts a new cycle
Is that all helpful to answer your questions?