#chuk_code
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1255603630011060266
đ Have more to share? Add details, code, screenshots, videos, etc. below.
ideally yes
but if it's authentication I can work with that, assuming that the only authentication scheme that happens with CARD is 3DS
Hmm give me a sec to think about how you would know a SetupIntent ran 3DS client-side
it's possible if there was an auth error. The error that's returned gives a setup_intent_authentication_failure
thanks!
You only care about if 3DS fails?
Or want to know if it runs, regardless of the outcome
the latter, regardless of outcome
I do want to know the outcome too but that's easy to determine
Gotcha, one sec
Alright so what you want to do is get the most recent SetupAttempt and look at its payment_method_details.card.three_d_secure hash: https://docs.stripe.com/api/setup_attempts/object#setup_attempt_object-payment_method_details-card-three_d_secure
uhuh
can I do this all on the clientside without hitting my own endpoint to fetch it?
No, you would have to list SetupAttempts from your backend
You can't use Stripe.JS to do that
Err sorry, you don't need to list SetupAttempts, you can retrieve the SetupIntent and expand latest_attempt: https://docs.stripe.com/api/setup_intents/object#setup_intent_object-latest_attempt
But regardless, you still have to do that from your backend
so the SetupIntent that's returned from stripe.confirmSetup doesn't have latest_attempt property
but if I retrieve it from the BE it'll have it
thanks
See: https://docs.stripe.com/expand for expansion