#sidedev_code
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/1398080012866945104
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
Which test card are you using?
I tried https://docs.stripe.com/testing#captcha, and indeed that captcha is not triggered on deferred intent flow
Can I suggest you writing to Support https://support.stripe.com/contact, so that they can check whether captcha is supported in live mode for deferred intent flow like yours?
Thanks. Yeah, I’ll email support. I tested both cards that are supposed to trigger the CAPTCHA, but neither worked when using server-side confirmation. They work fine when confirming on the client side with stripe.confirmPayment().
Is the client-side implementation the recommended approach? I have some backend logic that needs to run before confirming the payment, so ideally I’d prefer to confirm on the server—or at least run some validation before the payment is finalized.
Both client and server side confirmations are fine. In general, client side confirmation is more recommended as it handles the necessary additional action such as 3DS when needed.
You can use stripe.confirmPayment() with the confirmation token created: https://docs.stripe.com/js/payment_intents/confirm_payment#confirm_payment_intent-options-confirmParams-confirmation_token
The flow will be:
- Create a confirmation token
- Run validation
- Confirm the confirmation token at client side with
stripe.confirmPayment()usingconfirmation_tokenparam
However, even with this flow, I also can't trigger captcha in test mode