#hendr1x_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/1265302903971909675
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- hendr1x_api, 22 hours ago, 53 messages
- hendr1x_api, 3 days ago, 87 messages
- hendr1x_api, 4 days ago, 36 messages
- hendr1x_api, 4 days ago, 54 messages
I think most of the complexity I am running into revolves around authentication (3ds) required for some payments. I found out how to do it via [https://docs.stripe.com/payments/finalize-payments-on-the-server] but it is gonna be a pretty bad experience for the user because they off the site at the point
Hello?
When you're collecting and validating payment details, you're either intending to collect payment then or not (later). This is the difference between a setup intent and payment intent
If you have an amount and intent to charge ~now, use payment intents, optionally saving the card for later use with setup_future_usage. If no payment now, only to be decided later, use a setup intent.
So does setup intent handle authentication/3ds?
Yes
at time of setup or when payment occurs?
At setup time, when you confirm the setup intent
ok...man...I wish I was told about this 5 days before I coded everything
So is there any tutorials available that show setupIntent
It should only be a few small changes to switch
initialize payment element in mode=setup instead of mode=payment, use confirmSetup instead of confirmPayment and on the server create a setup intent instead of a payment intent
https://docs.stripe.com/payments/accept-a-payment-deferred?platform=web&type=setup
https://docs.stripe.com/payments/save-and-reuse?platform=web&ui=elements
Is there any downsides to this approach that I should know about?
One of those, depending on whether you create your intent up front or only just-in-time when the customer confirms
You just need to be ready to handle additional authentication if the bank ask for it when you do the off session payment later
Thats the 3ds stuff that was talking about earlier
Sorry...I thought you said it was taken care of during setup
This is the same problem I have with paymentIntent
Am I misunderstanding?
What got me interested in SetupIntent was..because when I processor payment via paymentIntent (https://docs.stripe.com/payments/finalize-payments-on-the-server) I have to handle "requres_action" for visitors that are no longer present which is a pain
Does setupIntent have this same issue?
Yes, thats always a possibility
When set up on the client initially, this should happen less, but the bank always has the option to require authentication again, you can't avoid that
Ok...so if I understand correctly, setupIntent requests authentication from visitors if needed but the banks may always require it happen again?
Yes, exactly. Any off-session payment in future can be declined for requiring additional authentication, this is true no matter how you initially collect the payment details.
The point is to do the confirmation with the customer on-session once up front to hopefully reduce that in future, but it is always possible
Understood...thanks for explaining everything so clearly
I appreciate it
I'm all set for now. Have a good day!
NP! happy to help -- you too!