#poacher2k-subscription-xgrades
1 messages ยท Page 1 of 1 (latest)
aight, thank you! is prorations enabled by default, and will this automagically be handled when updating the price ? ๐
I don't recall off the top of my head if prorations are enabled by default, and I typically recommend avoiding relying on defaults because A: explicit calls are usually easier to understand should you need to review the integration in the future and B: it protects you against us changing the default behavior. If prorations are enabled though, then yes the system will calculate those values for you.
good advice!
These articles may help you out with your goals also:
https://stripe.com/docs/billing/subscriptions/upgrade-downgrade
https://stripe.com/docs/billing/subscriptions/prorations
superb, thank you!
hmm, I can't find out how to specify create_prorations when using a Checkout Session to create a Subscription ๐ค
well prorations are for when you change/update a Subscription so it's not really related to creating one
to be clear, it's not a "mode" or setting on the Subscription object, it's a parameter you'd pass any time you make an update to the subscription to decide if you want that specific update to prorate or not
If you're looking for a pre-built flow for subscription management, then you'll want to take a look at our Customer Portal:
https://stripe.com/docs/billing/subscriptions/customer-portal
https://stripe.com/docs/api/customer_portal
aah, thank you for clarifying that! the reason I was wondering was because you can pass specify this when creating a Subscription directly: https://stripe.com/docs/api/subscription_items/update?lang=cli#create_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.
sadly this doesn't support Subscriptions with multiple products, but we'll absolutely be using the Customer Portal to handle updating the billing information
Ah, good catch, apologies for overlooking that detail!