Skip to content

Instantly share code, notes, and snippets.

@dolansgists
Created November 27, 2013 20:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dolansgists/7682858 to your computer and use it in GitHub Desktop.
Save dolansgists/7682858 to your computer and use it in GitHub Desktop.
2 Line PayPal IPN
$verify_url = 'https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_notify-validate&' . http_build_query( $_POST );
if( !strstr( file_get_contents( $verify_url ), 'VERIFIED' ) ) return false;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment