#jvincent9556_docs

1 messages ยท Page 1 of 1 (latest)

nova lanternBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฑ๏ธ We automatically close idle threads, which makes them read-only. Make sure you stick around to chat in realtime!

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1212430221689495563

๐Ÿ“ Have more to share? You can add more detail below, including code, screenshots, videos, etc.

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question. Thank you for your patience!

echo monolith
#

Also, I found [this](#dev-help message) on the discord. I am working with React Native Expo

#

but they're using the PaymentSheet component

stuck veldtBOT
echo monolith
#

Hello Toby, thank you for your response. I think I misunderstand how it works. After inputting the card information, should I expect the StripeProvider to prompt the user to complete the 3DS challenge or will I be the one to handle it?

Also, does the 3DS prompt show when createToken is called on the client or when either createPaymentIntent or confirmPaymentIntent is called on the server?

summer thicket
#

It's typically triggered when you call confirmPayment client-side.

#

Are you doing server-side confirmation?

echo monolith
#

yes, we confirm payments on the server

#

would I need to handle it client side or is there a way to handle it server side too?

summer thicket
#

I think the flow for that, is to use createPaymentMethod to create a Payment Method from the Card Element and provide the ID of that Payment Method to your backend.
https://docs.stripe.com/js/payment_methods/create_payment_method

Then use that Payment Method to confirm the payment server-side, and if the payment requires authentication you return the client_secret of the Payment Intent to your frontend and use handleNextAction:
https://docs.stripe.com/js/payment_intents/handle_next_action

echo monolith
#

thank you! I wasn't aware of handleNextAction, I will try it and report back here. I appreciate the help

summer thicket
#

Any time!