#Begin

1 messages · Page 1 of 1 (latest)

ivory raftBOT
burnt blaze
#

hello, can you paste whatever that you intend to share in the google doc here in this thread?

proper charm
#

What's the meaning

burnt blaze
#

you shared a google doc, what's inside?

proper charm
burnt blaze
#

we don't intend to access any shared docs, so if you have additional information that you want to share from that doc, please copy and paste them in this thread instead

proper charm
#

I have implemented normal user payment according to this document, but customers who need 3ds cannot pay successfully. How can I call 3ds?

burnt blaze
#

are you using the Payment Element or the Card Element to collect payment method details from your customer?

proper charm
#

Then please ignore the document link

#

I can pay successfully through this without 3ds customers

#

However, 3ds customers cannot pay through these interfaces.

burnt blaze
#

the instructions mention to use stripe.handleNextAction - have you implemented that when the PaymentIntent requires 3DS?

proper charm
#

Can you give me a demo?

#

are you here?

burnt blaze
#

actually since you're using the Payment Element, if the payment requires 3DS, it should automatically be handled with the confirmPayment method

#

that guide shows you how to implement your integration ^ and the confirmPayment method will automatically handle 3DS if required

proper charm
#

What does this code do, generate client_secret?

ivory raftBOT
prime forum
#

Hi @proper charm I'm taking over this thread

#

Can you tell me what you want to achieve with Stripe API?

proper charm
#

3ds

prime forum
#

Can you be more specifc?

proper charm
prime forum
#

I beleive Alex already answered this question. have you got a chance to read through the docs?

burnt blaze
#

that doc already provides you with the relevant code. Is there something in the code which isn't working for you?

Also, what do you mean by I can't change the order to pending here because it will issue an error message when it detects that it is not authenticated. - can you elaborate more?

#

like i mentioned, our code uses confirmPayment which handles 3DS. Did you check if your code using the confirmPayment method?

#

i don't really know where the information from your screenshots came from but anyway,

based off that PaymentIntent you provided - pi_3NpMpLLL4ALOXD230YkYUhVg, you're creating the PaymentIntent (this is fine)

But you're confirming it with your secret key, which isn't what our document described to do.

Our documentation passes the PaymentIntent's client_secret back to the frontend, and the confirmPayment is done using the client_secret : https://stripe.com/docs/payments/build-a-two-step-confirmation#submit-payment (this is what your code isn't doing)

Add an optional review page or run validations after a user enters their payment details.