Skip to content

A PayPal IPN validator to be used in your listener script. This class is based on the script provided in the PayPal code examples and requires cURL extensions.

Notifications You must be signed in to change notification settings

pmelite/PayPalIpnValidator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

PayPalIpnValidator

Use this class in your PayPal IPN listener to validate a request sent by PayPal. The class requires the CURL extension. You can always pass callback functions using 'set_callback()' for the various PayPal 'payment_status' values that could be received.

Callbacks from any 'payment_status' are allowed...here are some typical ones:

  • 'Completed'
  • 'Pending'
  • 'Refund'
  • 'Reversal'
  • 'VERIFIED' - this will run before 'Completed', 'Pending', etc.
  • 'INVALID'
  • 'MISMATCH' - this is not a PayPal status, this will be called if data sent to the 'validate()' method does not match what is in the $_POST array

Check PayPal's developer site (www.x.com/developers/paypal) for details.

About

A PayPal IPN validator to be used in your listener script. This class is based on the script provided in the PayPal code examples and requires cURL extensions.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%