#Loterak-sub-pausing
1 messages ยท Page 1 of 1 (latest)
When you say "paused" are you talking about pause_collection (https://stripe.com/docs/api/subscriptions/update?event_types-payment_intent.payment_failed#update_subscription-pause_collection) or are you referring to something else?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
indeed!
gotcha - and which behavior are you using?
void
We've had cases of subscription getting resumed (meaning pause_callection updated to nil) in the middle of a drafted invoice, and it ends up getting charge after the draft time passes. So I just want to confirm the behavior is the same for the inverse situation
Let me just test the behavior real quick - give me a minute
Sorry that took a while - so if the Invoice was a DRAFT and has auto_advance: true before the Subscription was paused, then the Invoice will transition to whatever state you specified in pause_collection.behavior when it's time to finalize it
So in your case, if a Subscription was paused and had an existing Invoice that was a draft with auto_advance: true, the Invoice would be voided an hour after it was created
If the Invoice has already been finalized and is no longer a draft then we won't change it at all
Loterak-sub-pausing
Perfect, thank you! Looking at the API Docs it does not state if auto_advance is true by default. We definitely never set a value on that by hand. Maybe I should mention we use Stripe checkout for most things.
Yes, auto_advance should be true by default for subscriptions (sorry it's not super clear from the docs)
Thank you very much @manic coral! That should be all ๐