#Madhav
1 messages · Page 1 of 1 (latest)
Hi there, are you referring to payment_intent.* events?
no
we are listening to invoice.paid for successful payment and invoice.payment_failed for failed events
OK, so how can I help?
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 .
Can you share with me the subscriptoin ID?
sub_1NSbf2SJXX4MNQ6qiaWyPgvg
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
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
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
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?
You should listen to invoice.payment_failed events.