#sidedev_code

1 messages · Page 1 of 1 (latest)

tight geodeBOT
#

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

umbral panther
#

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

Use test cards to validate your Stripe integration without moving real money. Test a variety of international scenarios, including successful and declined payments, card errors, disputes, and bank authentication. You can also test non-card payment methods and redirects.

#

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?

fluid ocean
#

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.

umbral panther
#

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.

#

The flow will be:

  1. Create a confirmation token
  2. Run validation
  3. Confirm the confirmation token at client side with stripe.confirmPayment() using confirmation_token param
#

However, even with this flow, I also can't trigger captcha in test mode