Magento Commerce v2.3.6/2.4.1 CAPTCHA in checkout not working
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:
- Magento Commerce 2.3.6 Release Notes: Known Issues
- Magento Open Source 2.3.6 Release Notes: Known Issues
For Magento 2.4.1:
- Magento Commerce 2.4.1 Release Notes: Known Issues
- Magento Open Source 2.4.1 Release Notes: Known Issues
Affected products and versions
Magento Commerce and Magento Open Source 2.3.6 and 2.4.1
Issue
Steps to reproduce
- Setup at least one of these payment methods in Magento: Paypal Express, Payflow Pro, or CyberSource.
- Go to Admin > Stores > Configuration > Customers > Customer Configuration > CAPTCHA.
- Set Enable CAPTCHA on the Storefront = Yes.
- Select in Forms: Checkout/Placing Order, Login, 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).
- On the frontend, add a product to the cart and try to checkout.
- 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:
- Composer patch MC-38033___2_3_x-p1__CAPTCHA_COMPOSER.patch 提取码:8svm
- Git patch MC-38033___2_3_x-p1__CAPTCHA_GIT.patch 提取码:a3ca
For Magento Commerce/Magento Commerce Cloud/Magento Open Source 2.4.1:
- Composer patch MC-38072___2_4_x-p1__CAPTCHA_COMPOSER.patch 提取码:wh74
- Git patch MC-38072___2_4_x-p1__CAPTCHA_GIT.patch 提取码:236f
These patches are not compatible with any other Magento versions and editions.
参考
https://support.magento.com/hc/en-us/articles/360051235772-Magento-Commerce-v2-3-6-2-4-1-CAPTCHA-in-checkout-not-working