Skip to content

jagjeet1991/paypal_ipn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

PayPal IPN

Usage

require 'paypal.php';
$paypal_sandbox = true;
$paypal = new paypal($paypal_sandbox);

PayPal Form

$columns = array(
 'business' => '#Business Email#',
 'item_name' => '#Item Name#',
 'item_number' => '#Item Number#',
 'amount' => '#Item Amount#',
 'currency_code' => '#Currency Code#',
 'return' => '#Return URL#',
 'cancel_return' => '#Cancel URL#',
 'notify_url' => '#Notify URL#',
 'custom' => '#Custom Data#'
);
foreach ($columns as $k => $v) {
 $paypal->add_field($k, $v);
}
echo $paypal->submit_form();

IPN Validate

$paypal->validate_ipn();

Releases

No releases published

Packages

No packages published

Languages