Skip to content

Instantly share code, notes, and snippets.

@angelleye
angelleye / paypal-ipn-simulator-html-forms
Created October 20, 2017 02:04
PayPal IPN Simulator HTML Forms
<!-- Profile Created -->
<form target="_new" method="post" action="http://www.yourdomain.com/youripnhandler.php">
<input type="hidden" name="verify_sign" value="ASsJ54wcfEJZVuwOMU8vBNHZb1TpAf7F4PMLvKL2uni1hb11jdOgdd2V" />
<input type="hidden" name="period_type" value="Regular" />
<input type="hidden" name="payer_status" value="verified" />
<input type="hidden" name="test_ipn" value="1" />
<input type="hidden" name="tax" value="0.00" />
<input type="hidden" name="payer_email" value="sandbo_1204199080_biz@angelleye.com" />
@angelleye
angelleye / paypal-ipn-forwarder.php
Created August 13, 2016 10:24
Forward PayPal IPN data to multiple URLs.
<?php
// Curl function to send POST data to a server.
function curl_request($url, $req, $ssl)
{
$curl_result=$curl_err='';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $req);