ACP2E-4419: Issue where gift cards don’t apply in the cart or at checkout…
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. Quality patch ACP2E-4419 for magento/module-gift-card-account applies to Magento Open Source and Adobe Commerce 2.4.4-p18 to 2.4.7-p10.
- Categories
- Order/Checkout
- Components
- magento/module-gift-card-account, magento/module-re-captcha-gift-card
- Origin
- adobe-commerce-support
- Since QPT
- 1.1.78
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. 1. Enable and configure reCAPTCHA validation for gift cards. 1. Create a gift card account with a valid code from Admin > Marketing > Gift Card Accounts. 1. On the storefront, add a product to the cart. 1. Apply the gift card code to the cart. 1. Proceed to the checkout payment step and apply the gift card code.
Adobe's page lists 2.4.6 - 2.4.7-p9 as compatible; the versions below are resolved from the current QPT constraints and are the ones the tool will offer.
Adobe scheduled the permanent fix for 2.4.9.
Install
Install the Quality Patches Tool with composer require magento/quality-patches, apply the prerequisites listed for all files applicable to your distribution and version first, then run vendor/bin/magento-patches apply ACP2E-4419. On Cloud, add ACP2E-4419 under stage.build.QUALITY_PATCHES in .magento.env.yaml.
For cweagans/composer-patches, choose a compatible version below and download the bundle. Copy its ACP2E-4419/ folder into patches/composer/, merge composer.patches.json into composer.json, then run composer install. Bundle prerequisites the same way and list them first. Paths are relative to each package root, using the default -p1 level. Prefer local files when configuring composer-patches; a remote URL can change.
Patch files and compatible versions
magento/magento2-ee-base >=2.4.6 <2.4.8
- Magento Open Source
- —
- vendor/magento/module-gift-card-account/view/frontend/web/js/action/get-gift-card-information.js
- vendor/magento/module-gift-card-account/view/frontend/web/js/action/set-gift-card-information.js
- vendor/magento/module-gift-card-account/view/frontend/web/js/gift-card.js
magento/security-package-ee >=1.0.1 <1.0.3
- Magento Open Source
- —
- vendor/magento/module-re-captcha-gift-card/view/frontend/layout/checkout_cart_index.xml
- vendor/magento/module-re-captcha-gift-card/view/frontend/web/js/action/get-gift-card-information-mixin.js
- vendor/magento/module-re-captcha-gift-card/view/frontend/web/js/action/set-gift-card-information-mixin.js
- vendor/magento/module-re-captcha-gift-card/view/frontend/web/js/checkoutReCaptcha.js (added)
- vendor/magento/module-re-captcha-gift-card/view/frontend/web/js/gift-card-recaptcha.js
