#callmarl-sub-item-proration
1 messages · Page 1 of 1 (latest)
Hey! There's no 'default' behaviour per se
That's a parameter you'd only pass when you making an update to a Subscription or Sub Item that will likely increase/reduce recurring costs
So it depends on what you want the behaviour to be]
It's only for test. To simalute renew event. But I doesn't want the proration to be apply because I want to also test transfer (I'm using card 4000000000000077). That's why I would like after subscription_renew() restor the default behavior of each items.
As I said, there's no default behaviour. It's a value that's applied at each update depending on whether you want prorations to be calculated or not
Ok thank you
stripe = Stripe()
stripe.Subscription.modify(
s_subscription_id,
billing_cycle_anchor = 'now',
proration_behavior = 'none'
)
So this is the right way to simulate renew subscription without the proration?
Yes, that will simulate a renewal with an immediate invoice issued: https://stripe.com/docs/billing/subscriptions/billing-cycle#changing