#Loterak-sub-pausing

1 messages ยท Page 1 of 1 (latest)

cedar gullBOT
manic coral
dense forum
#

indeed!

manic coral
#

gotcha - and which behavior are you using?

dense forum
#

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

manic coral
#

Let me just test the behavior real quick - give me a minute

manic coral
#

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

dense forum
#

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.

manic coral
#

Yes, auto_advance should be true by default for subscriptions (sorry it's not super clear from the docs)

dense forum
#

Thank you very much @manic coral! That should be all ๐Ÿ˜