Magento 2: reCAPTCHA validation error: The response is no longer valid (Braintree) Print

  • Braintree, reCAPTCHA, M2
  • 0

Issue: 

As a Magento merchant using Braintree payment gateway, you may receive a Payment Transaction Failed email from Magento with the following error message:

Reason reCAPTCHA validation error: The response is no longer valid: either is too old or has been used previously.

This issue was observed in Magento 2.4.5-p1. This error occurs when the reCAPTCHA validation fails for the payment transaction. The most common cause of this issue is when the Google reCAPTCHA is enabled for multiple areas, causing conflicts and validation errors.

Possible Solution:

  1. Check to see if you have enabled reCAPTCHA for both Checkout/Placing Order and Braintree payment form. This will cause issues. Disable the Checkout/Placing Order reCAPTCHA and flush the cache.

To disable reCAPTCHA for Checkout/Placing Order and flush the cache:

  1. Log in to your Magento admin panel.
  2. Go to Stores > Configuration > Security > Google reCaptcha Storefront.
  3. Under "Storefront," Set "Enable for Checkout/Placing Order" to "No" and leave "Braintree payment form" set to "Yes".
  4. Flush the cache by going to System > Cache Management > Flush Magento Cache.

If you are a Create Hosting customer utilising our MageVPS Plan, feel free to submit a support ticket and we can investigate and take care of this issue for you.


Was this answer helpful?

« Back