ACP2E-4419: Gift cards do not apply correctly at checkout after successful reCAPTCHA v2 validation on the storefront
The ACP2E-4419 patch fixes the issue where gift cards don’t apply in the cart or at the checkout payment step after successful Google reCAPTCHA v2 (I am not a robot) validation on the storefront. This patch is available when the Quality Patches Tool (QPT) 1.1.78 is installed. The patch ID is ACP2E-4419. Please note that this issue is scheduled to be fixed in Adobe Commerce 2.4.9.
Affected products and versions
The patch is created for Adobe Commerce version:
- Adobe Commerce (all deployment methods) 2.4.7-p8
Compatible with Adobe Commerce versions:
- Adobe Commerce (all deployment methods) 2.4.6 - 2.4.7-p9
magento/quality-patches package to the latest version and check the compatibility on the Quality Patches Tool: Search for patches page. Use the patch ID as a search keyword to locate the patch.Issue
Issue where gift cards don’t apply in the cart or at checkout after successful Google reCAPTCHA v2 (I am not a robot) validation on the storefront.
Steps to reproduce:
- Set up Google reCAPTCHA v2 (I am not a robot) in the Admin by navigating to Stores > Settings > Configuration > Security > Google reCAPTCHA Storefront.
- Enable and configure reCAPTCHA validation for gift cards.
- Create a gift card account with a valid code from Admin > Marketing > Gift Card Accounts.
- On the storefront, add a product to the cart.
- Apply the gift card code to the cart.
- Proceed to the checkout payment step and apply the gift card code.
Expected results:
The checkout applies the gift card successfully after Google reCAPTCHA validation completes.
Actual results:
The storefront displays the reCAPTCHA error Unknown macro: {“message”} when applying a gift card.
Apply the patch
To apply individual patches, use the following links depending on your deployment method:
- Adobe Commerce or Magento Open Source on-premises: Quality Patches Tool > Usage in the Quality Patches Tool guide.
- Adobe Commerce on cloud infrastructure: Upgrades and Patches > Apply Patches in the Commerce on Cloud Infrastructure guide.
Related reading
To learn more about Quality Patches Tool, refer to:
- Quality Patches Tool: A self-service tool for quality patches in the Tools guide.