#Sébastien
1 messages · Page 1 of 1 (latest)
Hello Sébastien, we'll be with you shortly! Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
• Sébastien, 32 minutes ago, 6 messages
• Sébastien, 12 hours ago, 3 messages
Hi there! Can you summarize your question in this new thread?
Yes I will
When I make a payment with a card where there is a 3D Secure verification, I systematically have an "Invoice Payment Failed" event before proceeding with the 3D Secure verification...
When I use a card without 3D Secure, I don't have this problem of Invoice Payment Failed...
An idea ?
I'm referring to a new subscription, you can take a lookup to the attachement.
For exemple : pi_3O5BXaIkuBTPnlgp2rGTTaqd
I systematically have an "Invoice Payment Failed" event before proceeding with the 3D Secure verification...
Yes that's expected and how Stripe works. What's the issue?
Ok I understand thanks, where can I see the different steps (events) of a payment with the 3D Secure verification ?
I have a webhook that processes the " failed invoices payements " ... and sends an email when there is one.
How can I distinguish when I have a failure with a 3D secure verification and not (other failed payement) ?
And also, big thanks for your response 🙂
👋 taking over for my colleague. Let me catch up.
Thanks 🙂
it's really about the payment method type
did you get a https://stripe.com/docs/api/events/types#event_types-invoice.payment_action_required event?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
so basically if you do, this means that the payment_failed event was due to requiring 3DS if the payment method type is card
Ok so, in my webhook, i have to check if I have a" payment action required", right
?
and adjust the emails that i send ?
yes
ok thanks, last question (sorry)... which data should i take in the event to verify this parameters ?
you can look at the payment_method
this one :
"payment_settings": {
"default_mandate": null,
"payment_method_options": null,
"payment_method_types": null
},
?
so basically invoice.payment_intent.payment_method.type
but note that payment_intent and payment method needs to be expanded first
so you can either retrieve the invoice and expand on payment_intent.payment_method or you can retrieve the PaymentIntent and expand on payment_method
it's really up to you