I'm looking at the documentation of WebHooks and IPN and I wonder: which one should I use my store where I don't need really real-time notifications? Even 1 hour delay will do. How do WebHooks and IPN differ for this matter?
Instant Payment Notification (IPN) is a message service that automatically notifies merchants of events related to PayPal transactions. Merchants can use it to automate back-office and administrative functions, including automatically fulfilling orders and providing customers with order status.
Webhooks are HTTP callbacks that receive notification messages for events. To create a webhook at PayPal, users configure a webhook listener and subscribe it to events. A webhook listener is a server that listens at a specific URL for incoming HTTP POST notification messages that are triggered when events occur.
The PayPal REST APIs use webhooks for event notification. Webhooks are HTTP callbacks that receive notification messages for events. After you configure a webhook listener for your app, you can create a webhook, which subscribes the webhook listener for your app to events.
IPN is the classical way of notifying merchants of events such as payments or subscriptions. It's coupled with the deprecated classic API. It might take a minute for events to reach the merchant.
Webhooks is the new REST API way where the event is sent almost instantly to the merchant.
It's better to implement Webhooks because it's the new way and IPN might be disposed of in the future.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With