#ilyeselb
1 messages · Page 1 of 1 (latest)
Typically, merchants rely on webhook events such as this one to know if the invoice payment failed
https://dashboard.stripe.com/test/events/evt_3NQWVKGyOBDbEOMC19ihSN1o
When you retrieve the invoice, what are you seeing in the response?
Can you share the complete response here?
I'm saving a payment method that requires 3D Secure authentication for my customers. then, I use that saved pm to pay another subscription directly without filling the stripe element form so i create a subscription. But here's the problem: if the card needs authentication, the payment for the invoice doesn't go through, and the subscription remains incomplete. What I really need is a way to figure out if the card being used is a 3D Secure card, so that I can redo the payment confirmation and the authentication process.
i have the payment intent of that failing payment ,but last_payment_error is null , now i use payment_intent?.status === 'requires_action'as condition but i think its not a good idea
I think there's distinction between when a PaymentIntent gets declined versus when it requires authentication to succeed
Prompting for 3DS isn't exactly "declining" as on a decline you'd need to provide a new PaymentMethod and the PaymentIntent would move to "requires_payment_method" status
Ah in your case it was a decline
interesting
i just need a condition to show the authentication modal thats it
it was declined i think because of the card type
the card saved is a 3ds with auth required
now im using requires_action (status of payment intent)
Gotcha. I believe you can use confirmCardPayment function with the PaymentIntent linked to the invoice and attempt to confirm the PaymentIntent again.
Quick question, did you use a SetupIntent to store the card previously?
i use Attach a PaymentMethod to a Customer
Gotcha. I think looking at PaymentIntent's status is good enough here.
That's what we recommend in our docs too
https://stripe.com/docs/billing/migration/strong-customer-authentication#scenario-1-creation
okayy