[PaaS only]{class="badge informative" title="Applies to Adobe Commerce on Cloud projects (Adobe-managed PaaS infrastructure) and on-premises projects only."}

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
NOTE
The patch might become applicable to other versions with new Quality Patches Tool releases. To check if the patch is compatible with your Adobe Commerce version, update the 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:

  1. Set up Google reCAPTCHA v2 (I am not a robot) in the Admin by navigating to Stores > Settings > Configuration > Security > Google reCAPTCHA Storefront.
  2. Enable and configure reCAPTCHA validation for gift cards.
  3. Create a gift card account with a valid code from Admin > Marketing > Gift Card Accounts.
  4. On the storefront, add a product to the cart.
  5. Apply the gift card code to the cart.
  6. 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:

To learn more about Quality Patches Tool, refer to:

recommendation-more-help
c2d96e17-5179-455c-ad3a-e1697bb4e8c3