#hedydajeazchujstaje_api

1 messages ยท Page 1 of 1 (latest)

vestal elkBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ 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.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— 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/1347167720399044709

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

willow edge
#

hi there!

narrow pewter
#

Hi

willow edge
#

why are you using Tokens? this is a very old API that we don't recommend using.

#

also, is your business PCI compliant to handle raw card numbers?

narrow pewter
#

We're not using anything yet, client seems to want us to use raw card data where we are sendign the card data to stripe ourselves. Business has PCI

#

I'd of course prefer to use some embedded widget, but i've exhausted all efforts at convincing them otherwise ๐Ÿ™‚

#

So it is what it is and I need to figure out how to do it with raw card data and 3dsecure

#

If there's a better API then tokens, i'm happy to use that

willow edge
#

and then you use PaymentIntent (and not Tokens)

narrow pewter
#

That's already enabled

willow edge
#

and 3DS will work as expected.

narrow pewter
#

So I create a payment intent with the card details attached

#

and I get back a link for the 3ds that i spawn?

#

regarding 3ds

willow edge
#

So I create a payment intent with the card details attached
yes, using the payment_method_data parameter that you would have access to
and I get back a link for the 3ds that i spawn?
then you check the status of the PaymentIntent, if it's requires_action then 3DS is needed. you can learn more about this here: https://docs.stripe.com/payments/paymentintents/lifecycle

narrow pewter
#

It's a fiat->crypto onramp so the client wants to always require 3ds

#

But alright, say I get requires_action - is there any documentation on how i perform the actual 3ds?

willow edge
#

are you doing the payment on session or off session?

narrow pewter
#

I'm not sure - never heard of on session/off session in this context

willow edge
#

is the user currently visiting your website/app when you create the payment?

narrow pewter
#

Yes

#

The user is entering his card data at that moment

#

There's no recurring billing or purchases happening later using the same card data, so i guess on-session

willow edge
narrow pewter
#

ok, i see, so the 3ds flow is done separately using the stripe.js thing

#

based on the client secret i get from the payment intent

#

I was thinking I get some URL and I have to spawn some modal myself etc