Log in
Factory

IpnFactory

Magento\Paypal\Model\IpnFactory

What it does

This factory class creates IPN (Instant Payment Notification) handler instances based on the PayPal transaction type.

Developers use this when processing PayPal IPN callbacks to automatically instantiate the appropriate handler class for different transaction types like payments, refunds, or disputes.

The factory uses a mapping array to determine which IPN handler class to create based on the txn_type parameter.

Public Methods

  • create()