#leanfucio
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. 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.
hello! By default, It'd credit the amount for the prorated time for the old price, and charge for the prorated time for the new price
in case you haven't seen this yet, you can use test clocks to mimic the passing of time : https://stripe.com/docs/billing/testing/test-clocks
yeah. but can I control the proration? I can't see proration_behavior:none to prevent any proration in the api.
there is a proration parameter : https://stripe.com/docs/api/subscriptions/update#update_subscription-proration_behavior
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
but that is for subscription. What I hope to do is to update a product's price and all the subscriptions using the product will automatically update the price without proration while in renewal it will use the new price
ah, unfortunately that's not how it works. You need to loop through each subscription to update it. If you want to update a subscription after the current billing cycle, you can look into Subscription Schedules instead : https://stripe.com/docs/billing/subscriptions/subscription-schedules/use-cases#changing-subscriptions
Oh, so this changing subscription from this doc will achieve the same behavior as changing the price with proration_behavior:none?
oh this is changing to a completely different subscription. it's different isn't it?
it's not changing to a completely different subscription
i reccomend testing it out to see how it works
you would need to specify the proration_behaviour when using Subscription Schedules
i think Subsscription Schedules are fairly complicated, if you run into issues while using it, feel free to reach out again here
just as a high level overview :
- create a Subscription Schedule from an existing Subscription
- Update the newly created Subscription Schedule
after reading through what you wrote, you shouldn't need to update the proration schedule cause you're changing the Price at the end of the billing cycle
Oh I sure will do reach out. I like this discord!