#WpgJetsFan13
1 messages · Page 1 of 1 (latest)
me again 😄
Hello again!
Hi!
You will always get the invoice.payment_failed event, how it affects the subscription's status depends on what you have in your billing settings under the "Manage failed payments" section in your dashboard. https://dashboard.stripe.com/settings/billing/automatic
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Oh, I see. I have it setup to retry invoicing them a few times I think
I think we want it to automatically invoice them a few times and then automatically invoice them. But I need to be able to reliably detect the status somehow, regardless of those settings, so I can update a flag in my database
What do you have set for "If all retries for a payment fail"?
cancel the subscription
I think there is an event you can look at either way
But I need to update a flag in my database before that subscription.deleted event occurs
to disable their service on our side
so I might just have to use the invoice paymentfailed event I guess
I noticed I could set it to mark the subscription as unpaid after the retries
To make sure I am clear on this: you want to disable services on your side on the first missed payment?
Yes
Gotcha. I see how this can be a bit weird. Typically here, we recommend updating that kind of flag in your system on the invoice.payment_failed event even though the subscription will stay active until the end of your schedule.
And then updating it again when you get a invoice.paid event to resume service presumably.
As far as I know, we don't support changing the subscription status on the first missed payment and doing the retries