#xfechx-invoice-nextattempt
1 messages · Page 1 of 1 (latest)
hi @sharp dove how can I know if its finalized?
I can see automatic collection was turned off after a few payment fails for that invoice
I think that is because of the setting in stripe dashboard about not leaving the subscription as is when many retries fail? (i am not entirely sure about this, but is my guess)
ah it's an old invoice? Then what's the problem? It's normal that next_payment_attempt is null if we won't attempt it again
How can I set them all again to be like default ?
I have just turned on the setting to not turn auto collection off
and could you please confirm the veracity of my assumption?
I'm sorry I don't follow you at all
changing the settings won't do anything for past invoices
so two things:
-
I want to turn off the setting that causes invoices to stop being collected after a few retries. (I suppose this is what you mean by an 'old invoice')
-
I want to change 'old invoices' (unpaid) to 'regular invoices'
I am taking about subscriptions
(not one off invoices)
I want to turn off the setting that causes invoices to stop being collected after a few retries
what does that mean though. That you would retry every day for years? Like there's no such setting. We try a few times (you can configure how many) and that's it
What's your real question though
https://stripe.com/docs/billing/subscriptions/overview#unpaid-subscriptions explains unpaid subscriptions
That one. So my code uses next_payment_attempt to notify the user and vendor, about a failed subscription. After a few retries, it also fires a 'fugitive alert' to ask the vendor to 'chase' the customer for updating their payment details.
The code uses the stripe hosted invoice url to update their payment method and continue the subscription.
I am really sorry for being dense. I really don't get the problem.
You have an Invoice. It will retry after a failed payment. It retries a few times. Each time it tells you when is the next time via next_payment_attempt. At some point, all retries have been exhausted (no way around it) and then it's null
yes
if all retries fail?
ok, so by instance I already changed to just mark them unpaid
I understand that there is a limit to retries
for invoices
If a subscription is cancelled. and a unpaid invoice is paid, then the subscription won't automatically restart, correct?
We would like the subscriptions to just be marked as unpaid, and when the customer pays for an unpaid invoice (of that subscription) for example with a new card, then the subscription continues again.
so, If I understand correctly, I just need to set the subscription as unpaid if all retries fail, correct?
yes
though if you carefully read the doc from earlier it says the Subscription will be active only if they pay the most recent unpaid Invoice
as a person helping devs, I recommend to never use the unpaid flow at all personally
like unpaid is more for say the electricity or water company
they continue preparing your invoices but they don't bill you because it's the winter and they are not allowed to cut your power/water
but they still expect you to pay it all at some point
when you do SaaS and stuff, if someone stops paying, they churned, you cancel their Subscription
ok, thanks so much! Undestood