2017 © Pedro Peláez
 

library php-paypal-ipn

PHP Class for verifying PayPal IPN messages

image

overint/php-paypal-ipn

PHP Class for verifying PayPal IPN messages

  • Wednesday, June 27, 2018
  • by overint
  • Repository
  • 4 Watchers
  • 10 Stars
  • 554 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 6 Versions
  • 9 % Grown

The README.md

PHP-PayPal-IPN

PHP Class for verifying PayPal Instant Payment Notification (IPN) messages.
Use the PaypalIPN class in your project to handle the encoding of POST data, post back to PayPal, and parsing of the response from PayPal., (*1)

To install this package using composer:, (*2)

composer require overint/php-paypal-ipn

Example Use Case

use overint\PaypalIPN;

$ipn = new PaypalIPN();
$ipn->useSandbox();
$verified = $ipn->verifyIPN();
if ($verified){
    //process IPN
}

Features

  • Switch between live and sandbox by using the useSandbox function.
  • Verifies an HTTP "200" response status code from the PayPal server.
  • Throws various exceptions to differentiate between common errors in code or server configuration versus invalid IPN responses.

Getting Started

This code is intended for web developers. You should understand how the IPN process works conceptually and you should understand when and why you would be using IPN. Reading the PayPal Instant Payment Notification Guide is a good place to start., (*3)

You should also have a [PayPal Sandbox Account][2] with a test buyer account and a test seller account. When logged into your sandbox account there is an IPN simulator under the 'Test Tools' menu which you can used to test your IPN listener., (*4)

Once you have your sandbox account setup, you simply create a PHP script that will be your IPN listener. In that script, use the PaypalIPN class as shown above in the example use case., (*5)

The Versions

27/06 2018

dev-master

9999999-dev

PHP Class for verifying PayPal IPN messages

  Sources   Download

MIT

by Avatar overint

27/06 2018

v1.0.5

1.0.5.0

PHP Class for verifying PayPal IPN messages

  Sources   Download

MIT

by Avatar overint

27/06 2018

v1.0.4

1.0.4.0

PHP Class for verifying PayPal IPN messages

  Sources   Download

MIT

by Avatar overint

27/06 2018

v1.0.3

1.0.3.0

PHP Class for verifying PayPal IPN messages

  Sources   Download

MIT

by Avatar overint

28/09 2016

v1.0.2

1.0.2.0

PHP Class for verifying PayPal IPN messages

  Sources   Download

MIT

by Avatar overint

18/09 2016

v1.0.0

1.0.0.0

PHP Class for verifying PayPal IPN messages

  Sources   Download

MIT

by Avatar overint