CARD_DECLINED_VERIFICATION_REQUIRED but user not challenged?

Hello there,

I’m facing another issue. Everything works well in sandbox but once I use a real card in production mode:

  • User is not challenged (userChallenged = false from verifyBuyer)
  • verification_token is sent (verified from Square’s API log)
  • Get CARD_DECLINED_VERIFICATION_REQUIRED error

Can we somehow force challenge?

Thank you

:wave: I’m Square Dev AI, here to help answer your question!
Based on the information you’ve provided, the following documentation will help answer your question:

Additional Documentation

Verify the Payment
Create a Card on File and a Payment
Test in the Sandbox

If this documentation helped you find a solution, please check the box indicating that this reply solves the problem.
Otherwise one of our Developer Advocates will provide additional assistance shortly.

The error CARD_DECLINED_VERIFICATION_REQUIRED typically indicates that Strong Customer Authentication (SCA) is required for the transaction but was not completed. This is common for transactions in regions where SCA is mandated, such as the European Economic Area (EEA).

Since you mentioned that userChallenged = false from verifyBuyer, it seems like the SCA challenge was not presented to the user. This could be due to the card issuer not requiring a challenge for this particular transaction.

However, the error suggests that the issuer did require SCA. This discrepancy might be due to the specific conditions of the transaction, such as the amount or the risk assessment by the issuer.

To resolve this issue, ensure that your application is correctly handling the SCA flow. This includes calling verifyBuyer during the payment process and handling the result correctly. If userChallenged = false, your application should be prepared to handle cases where the issuer still requires SCA.

If you continue to experience this issue, it may be helpful to reach out to the card issuer to understand their SCA requirements.

This answer was reviewed by @Bryan-Square.