#jonathanbull
1 messages ยท Page 1 of 1 (latest)
Umm I am not sure. How is RBI related to this?
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?
๐ taking over for my colleague. Let me catch up.
Thanks @haughty flint
Yes, please see above. evt_1MqBOgHZLNwo79RqVUPAVjPZ
Oh sorry my bad, I didn't see that one
looking into this now
ok so attempt_count is basically the number of retries
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.
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.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
"Any payment attempt counts as the first attempt"
hmmm yeah you're right, I might have misread this
let me try looking into this further then
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 ๐
looking into this
appreciate it
I think at this point what would be best is to take this off discord, it might take a while to investigate this
I would recommend sending all of this details through https://support.stripe.com/contact/email?topic=api_integration
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
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
will do, thanks
email sent @haughty flint
Thank you, I will let my colleague know!