#chuk_code

1 messages ¡ Page 1 of 1 (latest)

fallen vaultBOT
#

👋 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.

urban fable
#

Hello

#

To clarify you want to run this callback only if 3DS is requested?

tight echo
#

ideally yes

#

but if it's authentication I can work with that, assuming that the only authentication scheme that happens with CARD is 3DS

urban fable
#

Hmm give me a sec to think about how you would know a SetupIntent ran 3DS client-side

tight echo
#

it's possible if there was an auth error. The error that's returned gives a setup_intent_authentication_failure

#

thanks!

urban fable
#

You only care about if 3DS fails?

#

Or want to know if it runs, regardless of the outcome

tight echo
#

the latter, regardless of outcome

#

I do want to know the outcome too but that's easy to determine

urban fable
#

Gotcha, one sec

tight echo
#

uhuh

#

can I do this all on the clientside without hitting my own endpoint to fetch it?

urban fable
#

No, you would have to list SetupAttempts from your backend

#

You can't use Stripe.JS to do that

#

But regardless, you still have to do that from your backend

tight echo
#

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

urban fable
#

Correct

#

And you need to expand it to see the proper data

tight echo
#

thanks

urban fable