Skip to content

billabong/paypal_php_sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PayPal PHP Merchant API SDK

Simple PHP library for working with PayPal's ExpressCheckout and basic transaction handling.

Requirements

  • curl
  • PHP 5.3+
  • PayPal Sandbox account

Usage

See below for a basic usage example. More examples can be found in the tests folder.

Express Checkout Example:

<?php
require_once 'paypal_php_sdk/PayPal.php'; 
define("PAYPAL_API_USERNAME", "your API username");
define("PAYPAL_API_PASSWORD", "your API password");
define("PAYPAL_API_SIGNATURE", "your API signature");
define("PAYPAL_SANDBOX", true);
$paypal = new PayPalExpressCheckout;
$response = $paypal->setEC('45.95', 'http://example.com/checkout/review/', 'http://example.com/cart/');
if ($response->status == 'Success') $checkoutToken = $response->token;
?>
    

About

Simple PayPal Merchant API SDK for PHP

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages