ACSD-66149: IPN handler returns 500 for unsupported types
The ACSD-66149 patch fixes the issue where the IPN (Instant Payment Notification) handler returns a 500 error for unsupported or unknown IPN types. This patch is available when the Quality Patches Tool (QPT) 1.1.69 is installed. The patch ID is ACSD-66149. 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.6-p4
Compatible with Adobe Commerce versions:
- Adobe Commerce (all deployment methods) 2.4.4 - 2.4.7-p6
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 issue is the IPN handler returns a 500 error for unsupported or unknown IPN types. It occurs when Paypal sends IPN with some fields missing.
Steps to reproduce:
- Create a custom module that emulates all kinds of unknown IPN types from PayPal.
- Create at least one product.
- Configure PayPal Express with your own credentials.
- Place an order with Paypal Express.
- Run the PayPal emulator.
Expected results:
The application IPN handler ignores incorrect IPN types and doesn’t generate 500 errors:
Order 000000001: Status processing — HTTP 500
Actual results:
The application generates many 500 errors during processing incorrect IPNs and sporadically doesn’t process some orders if the expected fields are absent.
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