#poacher2k-subscription-xgrades

1 messages ยท Page 1 of 1 (latest)

lyric cargo
#

Hi ๐Ÿ‘‹ you'll want to update the price on the existing line_item.

manic garden
#

aight, thank you! is prorations enabled by default, and will this automagically be handled when updating the price ? ๐Ÿ™‚

lyric cargo
#

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.

manic garden
#

good advice!

lyric cargo
manic garden
#

superb, thank you!

#

hmm, I can't find out how to specify create_prorations when using a Checkout Session to create a Subscription ๐Ÿค”

dusky yew
#

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

lyric cargo
manic garden
# dusky yew to be clear, it's not a "mode" or setting on the Subscription object, it's a par...

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

manic garden
lyric cargo
#

Ah, good catch, apologies for overlooking that detail!