Instant Payment Notification (IPN) is the message service of PayPal, the payments and digital wallet company, that automatically tells a merchant's server about events affecting its PayPal transactions, such as a completed payment, a refund, a reversal or a subscription signup. Each notification is sent as an HTTP POST from PayPal's servers to a web address the merchant chooses, without any action from the buyer. The merchant's system uses it to mark orders as paid, release digital goods or update its accounting.
IPN dates from the early years of online checkout and remains in use, especially on older PayPal integrations and plugins for e-commerce platforms. The name is often used loosely for any payment callback, but in a strict sense it refers to PayPal's product. Most modern providers, including PayPal's own newer APIs, use webhooks for the same job. IPN should not be confused with instant payments, the real-time bank transfers covered by rules such as the EU's Instant Payments Regulation (IPR).
Instant payment notification in plain terms
Imagine running a shop where customers pay at a separate kiosk outside. You cannot see the kiosk, so you rely on the cashier sending you a note each time someone pays, saying who paid and how much. Without the note, you would have to trust the customer's word that they had paid.
IPN is that note, sent from PayPal to the merchant's computer. Because a fake note could be slipped under the door, the shop also phones the kiosk to check each note is genuine before handing over the goods.
How IPN works
An IPN exchange follows a fixed sequence:
- A buyer completes a payment, or another event occurs, such as a refund or a chargeback.
- PayPal sends an HTTP POST to the merchant's listener, a script at a URL the merchant registered in its account settings or passed with the transaction. The message carries fields such as the transaction ID, payment status, amount, currency and the receiver's email.
- The listener immediately returns an empty HTTP 200 response so PayPal knows the message arrived.
- The listener sends the complete, unaltered message back to PayPal with the parameter
cmd=_notify-validate. - PayPal replies with a single word:
VERIFIEDif it sent the message, orINVALIDif it did not. - Only after verification does the merchant act on the message, for example by updating the order.
If PayPal does not receive a success response, it resends the notification several times over a period of days. IPN is therefore asynchronous: the notification may arrive before or after the buyer returns to the merchant's website, and occasionally more than once.
Uses in e-commerce
For an online merchant, IPN closes the gap between the payment gateway and its own order system. Common uses include:
- Order fulfilment. Marking orders as paid and triggering shipping or the release of downloads only once payment is confirmed.
- Subscriptions. Recording signups, renewals, failed charges and cancellations for recurring payments.
- Disputes and refunds. Flagging reversals and refunds so stock, access and revenue figures can be corrected.
- Accounting. Feeding transaction data into bookkeeping and reconciliation processes.
Because notifications are server to server, they still work if a buyer closes the browser before returning to the store. This makes IPN more reliable than relying on a return page, a weakness of early e-commerce payments set-ups.
Security and implementation practice
A listener is a public web address, so anyone can send it data. Good practice is to treat every incoming message as unproven until checked. Merchants verify each message with PayPal, confirm that the receiver email matches their own account, check that the amount and currency match the order, and record transaction IDs so that a duplicate notification is not processed twice. Listeners should run over HTTPS, and payment data must be handled in line with data security standards.
Fraud controls still apply. A verified notification confirms that PayPal sent the message, not that the buyer is genuine, so merchants combine IPN with their own fraud prevention checks, particularly where they sell digital goods or operate as a high-risk merchant.
IPN and webhooks
Webhooks are the general pattern of which IPN is an early example: a provider calls a merchant's endpoint when something happens. Card processors, payment service providers (PSPs) and open banking platforms all use them. Modern webhook systems usually send JSON rather than form-encoded data, sign each message using cryptography instead of requiring a postback, and let merchants subscribe to specific event types.
PayPal's REST APIs use webhooks, and PayPal directs new integrations to them, while continuing to document IPN for existing users. For merchants on legacy plugins, moving to webhooks usually requires changes to the store's application programming interface (API) integration. Running both in parallel during migration helps avoid missed events, especially for subscriptions billed by subscription plans set up years earlier.