#hedydajeazchujstaje_api
1 messages ยท Page 1 of 1 (latest)
๐ 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.
hi there!
Hi
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?
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
if the business is PCI compliant, it needs to contact Stripe support (https://support.stripe.com/contact) to enable raw card numbers when creating PaymentIntent.
and then you use PaymentIntent (and not Tokens)
That's already enabled
and 3DS will work as expected.
So I create a payment intent with the card details attached
and I get back a link for the 3ds that i spawn?
https://docs.stripe.com/api/payment_intents/create?lang=php i don't see anything in the response here
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
regarding 3ds
So I create a payment intent with the card details attached
yes, using thepayment_method_dataparameter 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'srequires_actionthen 3DS is needed. you can learn more about this here: https://docs.stripe.com/payments/paymentintents/lifecycle
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?
are you doing the payment on session or off session?
I'm not sure - never heard of on session/off session in this context
is the user currently visiting your website/app when you create the payment?
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
got it. then you would use the client_secret of the PaymentIntent to call https://docs.stripe.com/js/payment_intents/confirm_card_payment#stripe_confirm_card_payment-attached on the frontent to trigger the 3DS flow.