#jonathanbull

1 messages ยท Page 1 of 1 (latest)

candid starBOT
spare harness
#

Umm I am not sure. How is RBI related to this?

daring spoke
#

Sorry, could've been clearer. Generally we see an attempt_count of 1 for the first time payment fails on an invoice, see for example evt_1Mqf7pHZLNwo79RqGMWNoehq

#

However we've recently been seeing an attempt_count of 0 on invoice.payment_failed events. These look to be related to customers based in India, so we're assuming it's related to RBI.

#

I guess my question can be rephrased as: under what circumstance would attempt_count be 0 when a invoice.payment_failed event is raised?

candid starBOT
haughty flint
#

๐Ÿ‘‹ taking over for my colleague. Let me catch up.

daring spoke
#

Thanks @haughty flint

haughty flint
#

sorry for the delay

#

do you have an example where the attempt_count is 0?

daring spoke
#

Yes, please see above. evt_1MqBOgHZLNwo79RqVUPAVjPZ

haughty flint
#

Oh sorry my bad, I didn't see that one

#

looking into this now

#

ok so attempt_count is basically the number of retries

daring spoke
#

Are you sure? If you look at evt_1Mqf7pHZLNwo79RqGMWNoehq for instance, you'll see this is the first payment attempt made for that invoice.

#

We very rarely see a 0 attempt_count in our logs.

haughty flint
#

https://stripe.com/docs/api/invoices/object#invoice_object-attempt_count

Number of payment attempts made for this invoice, from the perspective of the payment retry schedule. Any payment attempt counts as the first attempt, and subsequently only automatic retries increment the attempt count. In other words, manual payment attempts after the first attempt do not affect the retry schedule.

daring spoke
#

"Any payment attempt counts as the first attempt"

haughty flint
#

hmmm yeah you're right, I might have misread this

#

let me try looking into this further then

daring spoke
#

And if you look at evt_1Mqf7pHZLNwo79RqGMWNoehq, you'll see it does start on an attempt_count of 1. There was no attempt_count of 0 ever fired.

#

thank you ๐Ÿ™‚

haughty flint
#

looking into this

daring spoke
#

appreciate it

haughty flint
#

I think at this point what would be best is to take this off discord, it might take a while to investigate this

#

and mention that you were discussing this with tarzan on discord

#

I will pick it up and follow up asynchronously if you don't mind

candid starBOT
haughty flint
#

please let us know when you do send the email

#

thanks @daring spoke

daring spoke
#

will do, thanks

daring spoke
#

email sent @haughty flint

twin pine
#

Thank you, I will let my colleague know!