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

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
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

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:

  1. Create a custom module that emulates all kinds of unknown IPN types from PayPal.
  2. Create at least one product.
  3. Configure PayPal Express with your own credentials.
  4. Place an order with Paypal Express.
  5. 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:

To learn more about Quality Patches Tool, refer to:

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