paypal-ipn

Post on 28-Aug-2014

135 Views

Category:

Software

1 Downloads

Preview:

Click to see full reader

DESCRIPTION

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.

TRANSCRIPT

Presenter: Supriti Panda, Mindfire SolutionsDate: 18/06/2014

Paypal IPN

About Me

Skills

Certifications

Connect me

PHP, Codeigniter, Zend Framework, Magento, Wordpress, Javascript, Jquery, CSS3, Mysql, SOAP, REST

Contact me

ZEND PHP5.3

Magento Certified Developer - M70-101

LinkedIn : http://www.linkedin.com/in/supritipandaTwitter : https://twitter.com/supritipFacebook : https://www.facebook.com/supritipp

Email : supritip@mindfiresolutions.com / supritipp@gmail.comSkype : mfsi_supritip

Presenter: Supriti Panda, Mindfire Solutions

AGENDA

→ Why it is necessary?

→ What is IPN?

→ How it works?

→ Setup

→ Code Sample

→ IPN Simulator

→ Demo

Presenter: Supriti Panda, Mindfire Solutions

Why it is necessary?

Presenter: Supriti Panda, Mindfire Solutions

Why it is necessary?

Presenter: Supriti Panda, Mindfire Solutions

Why it is necessary?

Presenter: Supriti Panda, Mindfire Solutions

Customer is shopping online happily.

Why it is necessary?

Presenter: Supriti Panda, Mindfire Solutions

Why it is necessary?

Presenter: Supriti Panda, Mindfire Solutions

Customer will start complaining.

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

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

How it works?

Presenter: Supriti Panda, Mindfire Solutions

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

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

Paypal Setup

Presenter: Supriti Panda, Mindfire Solutions

My Account->Selling Preferences->Instant Payment Notification Preferences

Code Sample

Sandbox Url:

https://www.sandbox.paypal.com/cgi-bin/webscr

Live Url:

https://www.paypal.com/cgi-bin/webscr

https://github.com/paypal/ipn-code-samples/blob/master/paypal_ipn.php

Presenter: Supriti Panda, Mindfire Solutions

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.

Code Sample

Presenter: Supriti Panda, Mindfire Solutions

Code Sample

Presenter: Supriti Panda, Mindfire Solutions

Code Sample

Presenter: Supriti Panda, Mindfire Solutions

IPN Simulator

Presenter: Supriti Panda, Mindfire Solutions

DEMO

Presenter: Supriti Panda, Mindfire Solutions

Question and Answer

Presenter: Supriti Panda, Mindfire Solutions

Thank you

Presenter: Supriti Panda, Mindfire Solutions

References

https://developer.paypal.com/docs/classic/ipn/gs_IPN/

https://developer.paypal.com/webapps/developer/docs/classic/products/instant-payment-notification/

https://developer.paypal.com/docs/classic/ipn/ht_ipn

Image References

http://www.ydeveloper.com/blog/ecommerce/how-ecommerce-web-developer-can-help-you

http://www.someecards.com/usercards/viewcard/MjAxMi1hNzAzODE2N2ZlOTJjMDQ5

http://blog.manishchhabra.com/2013/10/programming-for-the-passion/

http://www.smallbusinessscope.com.au/customer-complaints-the-first-three-steps/

http://www.atakinteractive.com/blog/benefits-of-hiring-a-web-developer-for-your-ecommerce-website/

http://ecommercewebsitedevelopmentmelbourne.blogspot.in/2013/05/ecommerce-website-developer-play-vital.html

top related