Magento Commerce v2.3.6/2.4.1 CAPTCHA in checkout not working

2.70K 浏览故障排除补丁

Magento Commerce v2.3.6/2.4.1 CAPTCHA in checkout not working

企业版2.3.6/2.4.1里支付页面的CAPTCHA人机验证没法使用。

需要打补丁

This article provides a patch for the issue where the CAPTCHA feature for checkout does not work as expected on the Place Order page when using third-party payment providers like Paypal Express, Payflow Pro, or CyberSource in Magento.

This known issue is mentioned in DevDocs:

For Magento 2.3.6:

For Magento 2.4.1:

Affected products and versions

Magento Commerce and Magento Open Source 2.3.6 and 2.4.1

Issue

Steps to reproduce

  1. Setup at least one of these payment methods in Magento: Paypal Express, Payflow Pro, or CyberSource.
  2. Go to Admin > Stores > Configuration > Customers > Customer Configuration > CAPTCHA.
    • Set Enable CAPTCHA on the Storefront = Yes.
    • Select in FormsCheckout/Placing OrderLogin, and Forgot password.
    • Set Displaying Mode = After number of attempts to login (to make the Number of Unsuccessful Attempts to Login setting appear).
    • Set Number of Unsuccessful Attempts to Login = 0 (to make captcha work all the time).
  3. On the frontend, add a product to the cart and try to checkout.
  4. On Payment information page, enter captcha and try to checkout with Paypal Express, Payflow Pro, or CyberSource.

Expected result:

The CAPTCHA feature functions as expected.

Actual result:

The error message displays: Please provide CAPTCHA code and try again.

Solution

Apply one of the patches below depending on whether you are on Magento Commerce/Magento Commerce Cloud/Magento Open Source 2.3.6 or 2.4.1.

Patches

The patches are attached to this article, available for download in both .composer and .git formats.

To download a patch, scroll down to the end of the article and click the file name, or click one of the following links:

For Magento Commerce/Magento Commerce Cloud/Magento Open Source 2.3.6:

For Magento Commerce/Magento Commerce Cloud/Magento Open Source 2.4.1:

These patches are not compatible with any other Magento versions and editions.

参考

magento 2.x 打补丁教程

https://support.magento.com/hc/en-us/articles/360051235772-Magento-Commerce-v2-3-6-2-4-1-CAPTCHA-in-checkout-not-working

更改状态以发布
0