ACSD-49737: Coupon is incorrectly marked as used after a failed card payment
The ACSD-49737 patch fixes the issue where the coupon is incorrectly marked as used after a failed card payment. This patch is available when the Quality Patches Tool (QPT) 1.1.30 is installed. The patch ID is ACSD-49737. Please note that the issue is scheduled to be fixed in Adobe Commerce 2.4.7.
Affected products and versions
The patch is created for Adobe Commerce version:
- Adobe Commerce (all deployment methods) 2.4.4
Compatible with Adobe Commerce versions:
- Adobe Commerce (all deployment methods) 2.4.1-p1 - 2.4.6
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
The coupon is incorrectly marked as used after a failed card payment.
Prerequisites:
- Configure the Braintree sandbox payment method.
- Make sure the sales.rule.update.coupon.usage consumer is set up and running.
Steps to reproduce:
- Create a Cart Price Rule with auto generated coupon codes.
- Log in as a customer.
- Add product(s) to the cart.
- Apply an auto generated coupon code.
- Try to place an order with a failed payment.
- Check the coupon usage in the Cart Price Rule under the Manage Coupon Codes tab.
Expected results:
Coupon shouldn’t be flagged as used if the payment is failed.
Actual results:
- Coupon code says - Used: Yes, Times Used: 1
- Coupon code is valid for a single-time use only.
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.
Additional steps required after the patch installation
(This section is optional; there might be some steps required after applying the patch to fix the issue.)
Related reading
To learn more about Quality Patches Tool, refer to:
- Quality Patches Tool released: a new tool to self-serve quality patches in the support knowledge base.
- Check if patch is available for your Adobe Commerce issue using Quality Patches Tool in the Quality Patches Tool guide.
For info about other patches available in QPT, refer to Quality Patches Tool: Search for patches in the Quality Patches Tool guide.