Instant Payment Notification (IPN) is a messaging service that notifies users of events related to PayPal transactions. One can use IPN messages to automate back-office and administrative functions, such as fulfilling orders, tracking customers, and providing status and other transaction-related information.
3. AGENDA
→ Why it is necessary?
→ What is IPN?
→ How it works?
→ Setup
→ Code Sample
→ IPN Simulator
→ Demo
Presenter: Supriti Panda, Mindfire Solutions
4. Why it is necessary?
Presenter: Supriti Panda, Mindfire Solutions
5. Why it is necessary?
Presenter: Supriti Panda, Mindfire Solutions
6. Why it is necessary?
Presenter: Supriti Panda, Mindfire Solutions
Customer is shopping online happily.
7. Why it is necessary?
Presenter: Supriti Panda, Mindfire Solutions
8. Why it is necessary?
Presenter: Supriti Panda, Mindfire Solutions
Customer will start complaining.
9. What is IPN?
→ 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, like fulfilling
orders and providing customers with order status.
Presenter: Supriti Panda, Mindfire Solutions
10. What is IPN?
IPN is a message service that PayPal uses to notify you about
events like:
→ Instant payments
→ Authorizations
→ eCheck payments
→ Recurring payment / subscription
→ Chargebacks / refund
→ Adaptive Payment
Presenter: Supriti Panda, Mindfire Solutions
12. How it works?
STEPS:
1. A user clicks a PayPal button to kick off a checkout flow.
2. PayPal HTTP POSTs your listener an IPN message that
notifies you of this event.
3. Your listener returns an empty HTTP 200 response.
4. Your listener HTTP POSTs the complete, unaltered message
back to PayPal.
Note: This message must contain the same fields, in the same order, as the original IPN
from PayPal, all preceded by cmd=_notify-validate. Further, this message must use the
same encoding as the original.
Presenter: Supriti Panda, Mindfire Solutions
13. How it works?
5. PayPal sends a single word back - either VERIFIED (if the
message matches the original) or INVALID (if the message
does not match the original).
An IPN message consists of variables that describe the
transaction. These variables contain information about you,
your customer, and the details of the transaction itself.
Presenter: Supriti Panda, Mindfire Solutions
16. Code Sample
Presenter: Supriti Panda, Mindfire Solutions
Note: Sometimes you have to write header('HTTP/1.1 200 OK'); on the top of your code to acknowledge Paypal.