#meisei81 - 3DS2

1 messages · Page 1 of 1 (latest)

buoyant sentinel
#

Hi there!

#

What do you mean by "verify"? You want to confirm the PaymentIntent?

buoyant hedge
#

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

buoyant sentinel
#

Got it! How are you currently accepting payments? With PaymentIntent + Payment Element or something else?

buoyant hedge
#

PaymentIntent

#

in server side, I create an invoice and payment intent to pay

buoyant sentinel
buoyant hedge
#

What payment information should I collect? card number or cvv code?

buoyant sentinel
#

It depends. Do you already have a PaymentMethod saved?

buoyant hedge
#

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

buoyant sentinel
buoyant hedge
#

in 3ds1, I can get a url and redirect the customer to the url page. I don't need to follow this javascript action

buoyant sentinel
#

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.

buoyant hedge
#

Does the client_secret can use many times?

buoyant sentinel
#

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.

buoyant hedge
#

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?

buoyant sentinel
#

Yes exactly.

buoyant hedge
#

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?

buoyant sentinel
#

Yes you can!

buoyant hedge
#

ok

#

in order to get the stripe object, how to get the publishable api key?

buoyant sentinel