#yaroslav_25808
1 messages · Page 1 of 1 (latest)
Would pausing payment on the subscription fit the bill of what you are looking for? https://stripe.com/docs/billing/subscriptions/pause
https://stripe.com/docs/api/subscriptions/update#update_subscription-pause_collection
I'm checking stripe dashboard settings where I can set status "If all retries for a payment fail"
- cancel subscription
- mark as unpaid
- leave as is
I think I need to choose between 2 or 3rd option, because I do not want to cancel subscription
Yep, and it sounds like "unpaid" will leave the last invoice open and won't attempt new payments until you change it https://stripe.com/docs/billing/subscriptions/overview#unpaid-subscriptions
but it says: "The subscription continues to generate invoices each billing cycle and remains in draft state"
Draft invoices are not charged, you can cancel them if you want. Invoices are only charged when they finalized and go in to an open state
so if I want to keep only one draft invoice I need to cancel all previous ones right?
Are you doing anything to the existing open invoice? Checking in to best practice here. I assume that the behavior you want is to be able to trigger payment on some invoice and restart the subscription?
The docs say that paying the "most recent" invoice will move it back to active. I think that means you may want to void the invoices up until the most recent one and then pay that one to reactivate
the desired behavior is to keep subscription in some state (probably unpaid) where we keep only last invoice, so that we can prevent high amount of charge due to collected invoices after recovery
Gotcha. So I think these are the right settings
Also worth noting that you can update the subscription so that it immediately voids new invoices if that behavior makes more sense for your setup https://stripe.com/docs/api/subscriptions/update#update_subscription-pause_collection-behavior
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.