1

I'm working with magento 2.4.3-p3 and I want to know to reset reCaptcha in checkout?

In general reCaptcha is working fine but the problems comes when PayPal payment fails and customer wants to try again or customer simply cancel payment and try again without refreshing page - then I'm getting error from

module-re-captcha-webapi-rest/Plugin/RestValidationPlugin.php that "ReCaptcha validation failed, please try again".

I see that in module-re-captcha-webapi-ui/view/frontend/web/js/jquery-mixin.js there are set headers settings.headers['X-ReCaptcha'] = payload.xReCaptchaValue; but after payment fails/cancels the value in payload.xReCaptchaValue is not refreshed.

Any idea how to fix it? Changing from V2 to V3 doesn't fix the problem.

2
  • Hello @kajtek Do you find any solution for above issue? Commented Jul 13, 2023 at 10:21
  • i am also facing same problem , @kajtek have got any solution ? Commented Oct 17 at 10:41

2 Answers 2

0

I had the same issue. Sometimes a user selects a Braintree payment and gets an error such as; Your payment could not be taken. Please try again or use a different payment method due to insufficient funds, etc. The if they try again they get this error; Cannot use a payment_method_nonce more than once.

The recaptcha was stopping the Braintree payment method nonce from refreshing and this error would fire - Cannot use a payment_method_nonce more than once.

In my instance I was running M2.4.3-p1 and the payment method was using Braintree.

After much testing I found that the Magento quality patch MDVA-39305-V2 fixed this issue for me at the checkout. Checkout this link here to learn more about Magento quality patches

I hope this helps anyone else with this same issue. I took me many hours to track down the true cause.

0

I encountered this issue, and I found this patch fixed it for me: ACSD-50345: reCAPTCHA issues during the checkout

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.