#WpgJetsFan13

1 messages · Page 1 of 1 (latest)

robust briarBOT
surreal river
#

me again 😄

cunning anchor
#

Hello again!

surreal river
#

Hi!

cunning anchor
surreal river
#

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

cunning anchor
#

What do you have set for "If all retries for a payment fail"?

surreal river
#

cancel the subscription

cunning anchor
#

I think there is an event you can look at either way

surreal river
#

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

cunning anchor
#

To make sure I am clear on this: you want to disable services on your side on the first missed payment?

surreal river
#

Yes

cunning anchor
#

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