#climatebro_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/1235995841794146304
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello
hey
As long as you aren't changing the interval of the Price (meaning monthly, yearly, etc.) for the Subscription then nothing will be changed for the billing anchor.
Mostly you just want to update to the new Price and pass proration_behavior :none
So that there is no proration involved.
And my recommendation is to test this out thoroughly in test mode before you run the script
So set up a Subscription in test mode for each of the different Sub types you have
And run it through your script
You can use test clocks (https://docs.stripe.com/billing/testing/test-clocks) to ensure they behave as you expect over time
ok great thanks
though because people have paid a range of prices (from £2 to £2000) on a single product, I'm not sure we can just update the product?
so i'm assuming i have to set up multiple new 'fixed' products, and then move customers from the previous metered product to the new product. which is where the intervals change
you're saying i can update the price on a metered product?
Prices correspond to Products
When you upgrade a Subscription you just change the Price
It is automatically associated to whatever Product it was created under
OK cool. So i'm just adding in new fixed prices to the existing product
and as you say, no pro-rating
Yep that should work just fine
brilliant, thank you
is there any guidance on a script then to move people paying a certain amount onto the new price?
Not really -- you mostly just have to write that yourself. The only guidance is that you basically create a mapping so that when you list and loop through Subscriptions and examine their Subscription Item(s) you then correctly update that Subscription to the correct Price that maps to the one they have currently.
Sure thing