#Paul Han
1 messages ยท Page 1 of 1 (latest)
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?
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
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
Happy to shed what ๐ก I can ๐