#meisei81 - 3DS2
1 messages · Page 1 of 1 (latest)
Hi there!
What do you mean by "verify"? You want to confirm the PaymentIntent?
Hi, now I'm using the test card 4000000000003220 which requires 3ds 2.0 authorization
yeah. I want to complete the payment
but I don't know how to integrate the 3ds2.0 authorization
Got it! How are you currently accepting payments? With PaymentIntent + Payment Element or something else?
Then you need to collect the payment information on the frontend using the Payment Element, and then call confirmPayment to confirm the PaymentIntent (which will take care of any SCA, like 3DS1 or 3DS2).
https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=elements#web-collect-payment-details
What payment information should I collect? card number or cvv code?
It depends. Do you already have a PaymentMethod saved?
yeah. I can get the card information and created a payment method
this is my paymentIntent id: pi_3LFUQECsiaKaCQKS0UrNrLCp
and, I can see some certificate authorities from the payment intent object
If you already have a payment method for that payment intent, then you can only call this to go thought 3DS1 or 3DS2: https://stripe.com/docs/js/payment_intents/confirm_card_payment#stripe_confirm_card_payment-attached
in 3ds1, I can get a url and redirect the customer to the url page. I don't need to follow this javascript action
The PaymentIntent has a requires_action status. The recommended way to handle that is to retrieve the client_secret of the PaymentIntent, and then call stripe.confirmCardPayment('{PAYMENT_INTENT_CLIENT_SECRET}') on the frontend to start the 3DS1 and 3DS2 flow.
Does the client_secret can use many times?
What do you mean? Each PaymentIntent has a single client secret, and once the PaymentIntent is confirmed it should have status succeeded, and there's nothing left to do.
In test environment, in 3DS1 the customer would be redirected to a page. From the page, the customer can choose to complete or reject the authentication.
Does the stripe.confirmCardPayment can make the same effect?
Yes exactly.
If the client secret is used to invoke stripe.confirmCardPayment in frontend, but the customer do nothing and quit the flow, does the client secret can be used the second time?
Yes you can!
What do you mean? Which Stripe object?
The publishable key is available in your Stripe dashboard: https://dashboard.stripe.com/test/apikeys