#pavu_docs

1 messages ¡ Page 1 of 1 (latest)

red sparrowBOT
#

👋 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/1211958427824168981

📝 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!

frail tinselBOT
forest sapphire
#

hi there! should be safe yes. Not sure what you mean overall but you always create the Checkout Session in a backend page not a client component. And yes 3D Secure is mandatory to integrate, and it's already part of Checkout so that's all good.

lethal shadow
#

I mean this api, does it ensure secure transactions and why ?
const session = await stripe.checkout.sessions.create({
payment_method_types: ["card"],
// shipping_options: ['shr_1Mwl9pSJxRLy98VhcVoLmxMk'],
shipping_address_collection: {
allowed_countries: ['IN']
},
line_items: transformedItems,
mode: 'payment',
success_url: ${process.env.HOST}/success,
cancel_url: ${process.env.HOST}/checkout,
metadata: {
email,
images: JSON.stringify(items.map(item => item.image))
}
})

#

So the 3D Authentication is part of stripe.checkout.sessions.create() ?

forest sapphire
#

it's part of the hosted page that the customer visits(the session.url)

lethal shadow
#

ok so the transactions using that hosted page will be secure right ?

forest sapphire
#

they will use 3D Secure

lethal shadow
#

so how do i apply 3D secure in the code ?

forest sapphire