#yandos-3ds-testing
1 messages · Page 1 of 1 (latest)
Hello! Can you share an example payment intent ID that's giving you that error?
sure! pi_3ONIGgLlCGlHk0Bf1GXarHUN
Ah, are you trying to test setting up a card with a SetupIntent and then future payments don't require 3DS? If so, you need to be using the 4000002500003155 card instead, not the 4000000000003220 card
ok, could you point me to a description of what 4000002500003155 covers? cant seem to find it on the test cards page
I mean it works which is great, but would be good to know why it works haha
It's the first one in this section: https://stripe.com/docs/testing#authentication-and-setup
ah cool ok, so for cards that need re-authorisation such as 4000002760003184 how would you handle this using payment elements?
I was expecting it to work first time and then after that fail
Generally, the way you'd handle this is that if off-session payment fails you'd notify your customer (through an email or somethign similar) so that they can come back to your website and then you could re-confirm the Paymet Intent client-side (https://stripe.com/docs/js/payment_intents/confirm_payment#confirm_payment_intent-options-confirmParams-payment_method)
but wouldn't that mean the first time it would work (as the 3DS was confirmed) and only after this time I would notify the customer? It seems that even though i'm confirming its still failing the first time
Well what do you mean by "the first time" - do you mean when you're initially setting up the card with a setup intent? Or do you mean the first time you use it in an off-session paymetn intent?
not sure i follow you, i'm not setting up the card with a setup intent
$this->stripe->setupIntents->create([
'customer' => $this->createOrGetCustomer(auth()->user()),
'payment_method_types' => ['card'],
'usage' => 'off_session',
]);
thats creating the setup intent, i'm then passing through the paymentMethod when creating the payment intent
Putting it another way, when using 4000002760003184, what is the initial 3DS confirmation for?
The 4000002760003184 is meant to model a card that would always require 3DS. So even though the Setup Intent is sucessful, the card networks/bank are choosing not to accept any future 3DS exemptions (it's not somethign that should happen often, but it is something you still need to account for)
ok cool, sounds like more of an edge case, thanks for the explanation!