#Paul Han

1 messages ยท Page 1 of 1 (latest)

dim auroraBOT
red kraken
#

Hi ๐Ÿ‘‹

The Subscription is a state machine that changes status based on other events. You can pay any individual invoice via the Invoice Pay API https://stripe.com/docs/api/invoices/pay

What is it you are trying to do here?

reef grove
#

Yup, that is what I'm using to pay the failed invoice, but it isn't setting the subscription back to active

#

It only sets the subscription back to "active" if the most recent invoice is paid. So if I have the following invoices ordered by most recent:
a) draft
b) draft
c) failed
d) paid

I want to pay for invoice c, but when I do the subscription stays as "unpaid". It will go to "active" if i pay for invoice a, but I'm wondering if there is a way to set it back to "active" after paying invoice c

red kraken
#

No, that. is not how subscriptions work. Paying Invoice C is just collecting an outstanding debt at this point. You will need to finalize invoice A and pay it

reef grove
#

Gotcha, just confirming if that is the only way

#

thank you for your help

red kraken
#

Happy to shed what ๐Ÿ’ก I can ๐Ÿ™‚