#Madhav

1 messages · Page 1 of 1 (latest)

vernal geyserBOT
agile cradle
#

Hi there, are you referring to payment_intent.* events?

cosmic idol
#

no

#

we are listening to invoice.paid for successful payment and invoice.payment_failed for failed events

agile cradle
#

OK, so how can I help?

cosmic idol
#

when subscription updation happened through test card , stripe is sending both payment_failed and instantly next invoice.paid event is sent. don't know why both events are sent at same time .

agile cradle
#

Can you share with me the subscriptoin ID?

cosmic idol
#

sub_1NSbf2SJXX4MNQ6qiaWyPgvg

agile cradle
#

They are not happening at the same time
https://dashboard.stripe.com/test/events/evt_1NTelSSJXX4MNQ6q4tv3l1TI happened at 2023-07-14 05:42:02 UTC
https://dashboard.stripe.com/test/events/evt_1NTelWSJXX4MNQ6q3Tz4CKxm happened at 2023-07-14 05:42:06 UTC

#

Hmm, but indeed the invoice.payment_failed isn't something that I'd expect here as well. The invoice.requires_action event is what I expect

cosmic idol
#

okay, then what event we can expect for payment failed. ? since invoice.payment_failed happened and invoice.paid also happened so the payment succeeded.
Scenerio did - i upgraded the subscription through customer portal using test card ( it succeeded on portal ) but when i saw the event i got both invoice.payment_failed and invoice.paid. z

#

so i hard to track what is the reason for the payment failed ? is this because of test cards?

agile cradle
#

You should listen to invoice.payment_failed events.