2017 © Pedro Peláez
 

library paypal-php-library

PHP wrapper for PayPal APIs

image

angelleye/paypal-php-library

PHP wrapper for PayPal APIs

  • Thursday, March 22, 2018
  • by angelleye
  • Repository
  • 34 Watchers
  • 209 Stars
  • 36,217 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 80 Forks
  • 34 Open issues
  • 41 Versions
  • 5 % Grown

The README.md

Angell EYE PayPal PHP Library

This PHP class library for PayPal makes it easy to integrate PayPal APIs, including the PayPal REST APIs and Classic APIs like the Payments Standard Button Manager, Invoicing, General Merchant APIs, and Permissions., (*1)


Server Requirements

  • PHP version 5.3.0 or newer.
  • cURL

Installation

Video Overview

Install via Composer or Manual Download Overview Video, (*2)

Composer Install

Create a composer.json file with the following section and run composer update., (*3)

    "require": {
        "php": ">=5.3.0",
        "ext-curl": "*",
        "angelleye/paypal-php-library": "3.0.*"
    }

Manual Install (without Composer)

  • Download the class library and extract the contents do a directory in your project structure.
  • Upload the files to your web server.

Setup

Open /samples/config/config-sample.php, fill out your details accordingly, and save-as config.php to a location of your choice., (*4)

To use the library in your project, include the following into your file(s)., (*5)

  • /path/to/config.php
  • autoload.php

Usage

  • Open the template file that corresponds to the API call you'd like to make., (*6)

    • Example: If we want to make a call to the RefundTransaction API we open up /templates/RefundTransaction.php
  • You may leave the file here, or save this file to the location on your web server where you'd like this call to be made., (*7)

    • I like to save the files to a separate location and keep the ones included with the library as empty templates.
    • Note that you can also copy/paste the template code into your own file(s).
  • Each template file prepares the PayPal class object for you and includes PHP arrays for every parameter available to that particular API. Simply fill in the array parameters with your own dynamic (or static) data. This data may come from:, (*8)

    • Session Variables
    • General Variables
    • Database Recordsets
    • Static Values
    • Etc.
  • When you run the file you will get a $PayPalResult array that consists of all the response parameters from PayPal, original request parameters sent to PayPal, and raw request/response info for troubleshooting., (*9)

    • You may refer to the PayPal Developer Documentation for details about what response parameters you can expect to get back from any successful API request.
      • Example: When working with RefundTransaction, I can see that PayPal will return a REFUNDTRANSACTIONID, FEEREFUNDAMT, etc. As such, I know that those values will be included in $PayPalResult['REFUNDTRANSACTIONID'] and $PayPalResult['FEEREFUNDAMT'] respectively.
  • If errors occur they will be available in $PayPalResult['ERRORS'], (*10)

You may refer to this overview video of how to use the library, and there are also samples provided in the /samples directory as well as blank templates ready to use under /templates., (*11)

If you need additional help you may place an order for premium support., (*12)

Fully Functional Demos

The library comes with basic usage samples, but if you feel more comfortable seeing the integration inside a fully functional demo that is built into a basic shopping cart system, take a look at our demo kits available on our website., (*13)

You can find our FREE demos inside /demo directory. If you have purchased any demo then you just need to add those inside demo directory and its ready to go., (*14)

Tutorials

Supported APIs

REST APIs

Payments Standard Button Manager

Button Manager

Invoicing

Merchant

Permissions

PayPal Manager (PayFlow Gateway)

Financing Banners

  • FinancingBannerEnrollment

Deprecated

  • DoMobileCheckoutPayment
  • GetAccessPermissionsDetails
  • GetAuthDetails
  • SetAccessPermissions
  • SetAuthFlowParam
  • SetMobileCheckout
  • UpdateAccessPermissions
  • Adaptive Accounts
  • Adaptive Payments

Resources

The Versions

22/03 2018

dev-dev

dev-dev https://github.com/angelleye/paypal-php-library

PHP wrapper for PayPal APIs

  Sources   Download

GPL-3.0+

The Requires

 

api rest paypal invoicing express checkout adaptive payments payflow angelleye payments pro

15/09 2017

dev-givewhen

dev-givewhen https://github.com/angelleye/paypal-php-library

PHP wrapper for PayPal APIs

  Sources   Download

GPL-3.0+

The Requires

 

api rest paypal invoicing express checkout adaptive payments payflow angelleye payments pro

28/08 2017

dev-Issue-108

dev-Issue-108 https://github.com/angelleye/paypal-php-library

PHP wrapper for PayPal APIs

  Sources   Download

GPL-3.0+

The Requires

 

api rest paypal invoicing express checkout adaptive payments payflow angelleye payments pro

28/08 2017

dev-Issue-107

dev-Issue-107 https://github.com/angelleye/paypal-php-library

PHP wrapper for PayPal APIs

  Sources   Download

GPL-3.0+

The Requires

 

api rest paypal invoicing express checkout adaptive payments payflow angelleye payments pro

28/08 2017

dev-Issue-110

dev-Issue-110 https://github.com/angelleye/paypal-php-library

PHP wrapper for PayPal APIs

  Sources   Download

GPL-3.0+

The Requires

 

api rest paypal invoicing express checkout adaptive payments payflow angelleye payments pro

24/07 2017

dev-Issue-106

dev-Issue-106 https://github.com/angelleye/paypal-php-library

PHP wrapper for PayPal APIs

  Sources   Download

GPL-3.0+

The Requires

 

api rest paypal invoicing express checkout adaptive payments payflow angelleye payments pro

21/07 2017

dev-Issue-101

dev-Issue-101 https://github.com/angelleye/paypal-php-library

PHP wrapper for PayPal APIs

  Sources   Download

GPL-3.0+

The Requires

 

api rest paypal invoicing express checkout adaptive payments payflow angelleye payments pro

19/07 2017

dev-Issue-77

dev-Issue-77 https://github.com/angelleye/paypal-php-library

PHP wrapper for PayPal APIs

  Sources   Download

GPL-3.0+

The Requires

 

api rest paypal invoicing express checkout adaptive payments payflow angelleye payments pro

19/07 2017

dev-Issue-76

dev-Issue-76 https://github.com/angelleye/paypal-php-library

PHP wrapper for PayPal APIs

  Sources   Download

GPL-3.0+

The Requires

 

api rest paypal invoicing express checkout adaptive payments payflow angelleye payments pro

05/07 2017

dev-Issue-72

dev-Issue-72 https://github.com/angelleye/paypal-php-library

PHP wrapper for PayPal APIs

  Sources   Download

GPL-3.0+

The Requires

 

api rest paypal invoicing express checkout adaptive payments payflow angelleye payments pro

08/06 2017

dev-Issue-93

dev-Issue-93 https://github.com/angelleye/paypal-php-library

PHP wrapper for PayPal APIs

  Sources   Download

GPL-3.0+

The Requires

 

api rest paypal invoicing express checkout adaptive payments payflow angelleye payments pro

07/06 2017

dev-Issue-92

dev-Issue-92 https://github.com/angelleye/paypal-php-library

PHP wrapper for PayPal APIs

  Sources   Download

GPL-3.0+

The Requires

 

api rest paypal invoicing express checkout adaptive payments payflow angelleye payments pro

23/05 2017

dev-Issue-71

dev-Issue-71 https://github.com/angelleye/paypal-php-library

PHP wrapper for PayPal APIs

  Sources   Download

GPL-3.0+

The Requires

 

api rest paypal invoicing express checkout adaptive payments payflow angelleye payments pro

22/05 2017

dev-Issue-56

dev-Issue-56 https://github.com/angelleye/paypal-php-library

PHP wrapper for PayPal APIs

  Sources   Download

GPL-3.0+

The Requires

 

api rest paypal invoicing express checkout adaptive payments payflow angelleye payments pro

22/05 2017

dev-Issue-88

dev-Issue-88 https://github.com/angelleye/paypal-php-library

PHP wrapper for PayPal APIs

  Sources   Download

GPL-3.0+

The Requires

 

api rest paypal invoicing express checkout adaptive payments payflow angelleye payments pro

20/05 2017

dev-Issue-75

dev-Issue-75 https://github.com/angelleye/paypal-php-library

PHP wrapper for PayPal APIs

  Sources   Download

GPL-3.0+

The Requires

 

api rest paypal invoicing express checkout adaptive payments payflow angelleye payments pro

23/02 2017

dev-Issue-82

dev-Issue-82 https://github.com/angelleye/paypal-php-library

PHP wrapper for PayPal APIs

  Sources   Download

GPL-3.0+

The Requires

 

api rest paypal invoicing express checkout adaptive payments payflow angelleye payments pro

23/02 2017

dev-Issue-83

dev-Issue-83 https://github.com/angelleye/paypal-php-library

PHP wrapper for PayPal APIs

  Sources   Download

GPL-3.0+

The Requires

 

api rest paypal invoicing express checkout adaptive payments payflow angelleye payments pro

08/02 2017

dev-Issue-79

dev-Issue-79 https://github.com/angelleye/paypal-php-library

PHP wrapper for PayPal APIs

  Sources   Download

GPL-3.0+

The Requires

 

api rest paypal invoicing express checkout adaptive payments payflow angelleye payments pro

07/02 2017

dev-dev_demo_kits

dev-dev_demo_kits https://github.com/angelleye/paypal-php-library

PHP wrapper for PayPal APIs

  Sources   Download

GPL-3.0+

The Requires

 

api rest paypal invoicing express checkout adaptive payments payflow angelleye payments pro

05/02 2017

dev-release

dev-release https://github.com/angelleye/paypal-php-library

PHP wrapper for PayPal APIs

  Sources   Download

GPL-3.0+

The Requires

 

api rest paypal invoicing express checkout adaptive payments payflow angelleye payments pro

25/01 2017

dev-dev_itpath

dev-dev_itpath https://github.com/angelleye/paypal-php-library

PHP wrapper for PayPal APIs

  Sources   Download

GPL-3.0+

The Requires

 

api rest paypal invoicing express checkout adaptive payments payflow angelleye payments pro

20/01 2017

dev-Issue-80

dev-Issue-80 https://github.com/angelleye/paypal-php-library

PHP wrapper for PayPal APIs

  Sources   Download

GPL-3.0+

The Requires

 

api rest paypal invoicing express checkout adaptive payments payflow angelleye payments pro

13/01 2017

dev-Issue-74

dev-Issue-74 https://github.com/angelleye/paypal-php-library

PHP wrapper for PayPal APIs

  Sources   Download

GPL-3.0+

The Requires

 

api rest paypal invoicing express checkout adaptive payments payflow angelleye payments pro

12/01 2017

dev-Issue-54

dev-Issue-54 https://github.com/angelleye/paypal-php-library

PHP wrapper for PayPal APIs

  Sources   Download

GPL-3.0+

The Requires

 

api rest paypal invoicing express checkout adaptive payments payflow angelleye payments pro

12/01 2017

dev-Issue-5

dev-Issue-5 https://github.com/angelleye/paypal-php-library

PHP wrapper for PayPal APIs

  Sources   Download

GPL-3.0+

The Requires

 

api rest paypal invoicing express checkout adaptive payments payflow angelleye payments pro

09/01 2017

dev-Issue-73

dev-Issue-73 https://github.com/angelleye/paypal-php-library

PHP wrapper for PayPal APIs

  Sources   Download

GPL-3.0+

The Requires

 

api rest paypal invoicing express checkout adaptive payments payflow angelleye payments pro

06/01 2017

dev-Issue-70

dev-Issue-70 https://github.com/angelleye/paypal-php-library

PHP wrapper for PayPal APIs

  Sources   Download

GPL-3.0+

The Requires

 

api rest paypal invoicing express checkout adaptive payments payflow angelleye payments pro

05/01 2017

dev-Issue-59

dev-Issue-59 https://github.com/angelleye/paypal-php-library

PHP wrapper for PayPal APIs

  Sources   Download

GPL-3.0+

The Requires

 

api rest paypal invoicing express checkout adaptive payments payflow angelleye payments pro

05/01 2017

dev-Issue-36

dev-Issue-36 https://github.com/angelleye/paypal-php-library

PHP wrapper for PayPal APIs

  Sources   Download

GPL-3.0+

The Requires

 

api rest paypal invoicing express checkout adaptive payments payflow angelleye payments pro

04/01 2017

dev-Issue-61

dev-Issue-61 https://github.com/angelleye/paypal-php-library

PHP wrapper for PayPal APIs

  Sources   Download

GPL-3.0+

The Requires

 

api rest paypal invoicing express checkout adaptive payments payflow angelleye payments pro

04/01 2017

dev-Issue-67

dev-Issue-67 https://github.com/angelleye/paypal-php-library

PHP wrapper for PayPal APIs

  Sources   Download

GPL-3.0+

The Requires

 

api rest paypal invoicing express checkout adaptive payments payflow angelleye payments pro

03/01 2017

dev-Issue-21

dev-Issue-21 https://github.com/angelleye/paypal-php-library

PHP wrapper for PayPal APIs

  Sources   Download

GPL-3.0+

The Requires

 

api paypal invoicing express checkout adaptive payments payflow angelleye payments pro

23/01 2016

dev-master

9999999-dev https://github.com/angelleye/paypal-php-library

PHP wrapper for PayPal APIs

  Sources   Download

GPL-3.0+

The Requires

  • php >=5.3.0
  • ext-curl *

 

api paypal invoicing express checkout adaptive payments payflow angelleye payments pro

31/03 2015

v2.0.4

2.0.4.0 https://github.com/angelleye/paypal-php-library

PHP wrapper for PayPal APIs

  Sources   Download

GPL-3.0+

The Requires

  • php >=5.3.0
  • ext-curl *

 

api paypal invoicing express checkout adaptive payments payflow angelleye payments pro

08/12 2014

v2.0.3

2.0.3.0 https://github.com/angelleye/paypal-php-library

PHP wrapper for PayPal APIs

  Sources   Download

GPL-3.0+

The Requires

  • php >=5.3.0
  • ext-curl *

 

api paypal invoicing express checkout adaptive payments payflow angelleye payments pro

12/11 2014

v2.0.2.2

2.0.2.2 https://github.com/angelleye/paypal-php-library

PHP wrapper for PayPal APIs

  Sources   Download

GPL-3.0+

The Requires

  • php >=5.3.0
  • ext-curl *

 

api paypal invoicing express checkout adaptive payments payflow angelleye payments pro

05/11 2014

v2.0.2.1

2.0.2.1 https://github.com/angelleye/paypal-php-library

PHP wrapper for PayPal APIs

  Sources   Download

GPL-3.0+

The Requires

  • php >=5.3.0
  • ext-curl *

 

api paypal invoicing express checkout adaptive payments payflow angelleye payments pro

01/08 2014

v2.0.2

2.0.2.0 https://github.com/angelleye/paypal-php-library

PHP wrapper for PayPal APIs

  Sources   Download

GPL-3.0+

The Requires

  • php >=5.3.0
  • ext-curl *

 

api paypal invoicing express checkout adaptive payments payflow angelleye payments pro

28/03 2014

v2.0.1

2.0.1.0 https://github.com/angelleye/paypal-php-library

PHP wrapper for PayPal APIs

  Sources   Download

GPL-3.0+

The Requires

  • php >=5.3.0
  • ext-curl *

 

api paypal invoicing express checkout adaptive payments payflow angelleye payments pro

25/03 2014

v2.0

2.0.0.0 https://github.com/angelleye/paypal-php-library

PHP wrapper for PayPal APIs

  Sources   Download

GPL-3.0+

The Requires

  • php >=5.3.0
  • ext-curl *

 

api paypal invoicing express checkout adaptive payments payflow angelleye payments pro