#anadalg
1 messages ยท Page 1 of 1 (latest)
Hi there
Hi!
Are these for automatic retries for the Invoice?
yes
Great! Then you want to look at the attempt_count on the Invoice: https://stripe.com/docs/api/invoices/object#invoice_object-attempt_count
Thank you! this seems what I was searching for ๐
๐
is there a way to inferre from the "payment_intent.payment_failed" event payload if is the first attempt?
No since that gives you the PaymentIntent object
You would either need to retrieve the Invoice or listen for invoice.payment_failed instead.
Great, thanks!