#madmark00178_code
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/1309224759766024254
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi, let me help you with this.
Yes, it's best to create Subscriptions/SubSchedules in Test mode. You can use Test Clocks to simulate time passing: https://docs.stripe.com/billing/testing/test-clocks
Vanya - is there any guide on how to match the behavior of the billing portal downgrade preview by using API calls
If you want to simulate Billing Portal downgrade, you should actually create a Billing Portal Session in Test mode: https://docs.stripe.com/no-code/customer-portal
But can i do that with test clocks?
Yes, you create a Customer with Test clocks and then create a Billing Portal Session for the same Customer.
Additionally, with the new downgade preview feature, I can't find anything in the docs - what happens if someone makes a downgrade change (which is then scheduled) and then changes to somethign else? Does it handle all cases automatically by modifying the subscription schedule?
Hi there ๐ I'm taking over as my teammate needs to step away. Please bear with me while I catch up on the downgrade preview feature you're referring to.
Please let me know if it isn't the right feature you're referring to, but if it's this one mentioned here:
https://docs.stripe.com/customer-management/configure-portal#:~:text=Off-,Manage downgrades,-Preview
Then I don't think additional updates are supported, as Subscriptios with a Subscription Schedule aren't supported by the Customer Portal:
https://docs.stripe.com/customer-management#:~:text=Customers canโt update or cancel subscriptions that currently have an update scheduled with a subscription schedule
Yup, but it seems to attach a Subscription Schedule to the Subscription. So once a customer schedules one change I don't believe they'd be able to schedule others. But let me know if that isn't what you see in your testing.
K ill explore it. Sorry one other thing, but let me check something first
So okay, i assumed if i disable proration, it would charge for an upgrade immedtiately, but it doesn't - it charges at the end of the month. Is that correct? Is there a way to have it charge immediately via billing portal or do i need to use a custom api setup
Can you elaborate on what you mean by disable prorations? Do you have an example of a Subscription you upgraded (the sub_ ID), or billing portal session ID (bps_)?
Yes - the customer portal can set to prorate or not prorate on subscription upgrades/downgrades. If you set it to not prorate, and then you upgrade in the customer portal, it charges at the end of the cycle.
I was wondering if there's a way to have it charge immedtiately for the new month
(full charge)
I'll need to sit down and test this. I thought Subscription upgrades always triggered immediately, and that only downgrades could be postponed to happen at period end. Unless you're able to share examples from your testing that I can dig into.
Oh I see, the upgrade happens immediately, but what you want to do is also adjust the billing_cycle_anchor to change when the billing periods are? That I don't believe is supported, but I'm double checking to make sure I'm not overlooking a parameter.
Yeah, I'm not seeing a way to do that.