2017 © Pedro Peláez
 

library sdk-core-php

PayPal Core SDK for PHP

image

vadpro/sdk-core-php

PayPal Core SDK for PHP

  • Tuesday, February 9, 2016
  • by vadprit
  • Repository
  • 1 Watchers
  • 0 Stars
  • 38 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 92 Forks
  • 0 Open issues
  • 39 Versions
  • 0 % Grown

The README.md

PayPal Core SDK - V1.5.4

POODLE UPDATE

  • Because of the Poodle vulnerability, PayPal has disabled SSLv3.
  • To enable TLS encryption, the change was made to PPHttpConfig.php to use a cipher list specific to TLS encryption. ``` php /**
    • Some default options for curl
    • These are typically overridden by PPConnectionManager */ public static $DEFAULT_CURL_OPTS = array( CURLOPT_SSLVERSION => 1, CURLOPT_CONNECTTIMEOUT => 10, CURLOPT_RETURNTRANSFER => TRUE, CURLOPT_TIMEOUT => 60, // maximum number of seconds to allow cURL functions to execute CURLOPT_USERAGENT => 'PayPal-PHP-SDK', CURLOPT_HTTPHEADER => array(), CURLOPT_SSL_VERIFYHOST => 2, CURLOPT_SSL_VERIFYPEER => 1, CURLOPT_SSL_CIPHER_LIST => 'TLSv1', );
- There are two primary changes done to curl options:
    - CURLOPT_SSLVERSION is set to 1 . See [here](http://curl.haxx.se/libcurl/c/CURLOPT_SSLVERSION.html) for more information
    - CURLOPT_SSL_CIPHER_LIST was set to TLSv1, See [here](http://curl.haxx.se/libcurl/c/CURLOPT_SSL_CIPHER_LIST.html) for more information

All these changes are included in the recent [release](https://github.com/paypal/sdk-core-php/releases), along with many other bug fixes. We highly encourage you to update your versions, by either using `composer` or directly downloading the library available [here](https://github.com/paypal/sdk-core-php/releases).

## Prerequisites

 * PHP 5.2 and above
 * curl extension with support for OpenSSL
 * PHPUnit 3.5 for running test suite (Optional)
 * Composer (Optional - for running test cases)

## Configuration


## OpenID Connect Integration

   1. Redirect your buyer to `PPOpenIdSession::getAuthorizationUrl($redirectUri, array('openid', 'address'));` to obtain authorization. The second argument is the list of access privileges that you want from the buyer.
   2. Capture the authorization code that is available as a query parameter (`code`) in the redirect url
   3. Exchange the authorization code for a access token, refresh token, id token combo


```php
    $token = PPOpenIdTokeninfo::createFromAuthorizationCode(
        array(
            'code' => $authCode
        )
    );
  1. The access token is valid for a predefined duration and can be used for seamless XO or for retrieving user information
   $user = PPOpenIdUserinfo::getUserinfo(
        array(
            'access_token' => $token->getAccessToken()
        )   
    );
  1. If the access token has expired, you can obtain a new access token using the refresh token from the 3'rd step.
   $token->createFromRefreshToken(array('openid', 'address'));
  1. Redirect your buyer to PPOpenIdSession::getLogoutUrl($redirectUri, $idToken); to log him out of paypal.

The Versions

09/02 2016

dev-namespace-5.3

dev-namespace-5.3 https://github.com/vadpro/sdk-core-php

PayPal Core SDK for PHP

  Sources   Download

Apache2

The Requires

  • php >=5.3.0
  • ext-curl *

 

The Development Requires

php sdk paypal

20/01 2016

v3.2.4

3.2.4.0 https://github.com/paypal/sdk-core-php

PayPal Core SDK for PHP

  Sources   Download

Apache2

The Requires

  • php >=5.3.0
  • ext-curl *

 

The Development Requires

php sdk paypal

09/12 2015

v3.2.3

3.2.3.0 https://github.com/paypal/sdk-core-php

PayPal Core SDK for PHP

  Sources   Download

Apache2

The Requires

  • php >=5.3.0
  • ext-curl *

 

The Development Requires

php sdk paypal

25/11 2015

v3.2.2

3.2.2.0 https://github.com/paypal/sdk-core-php

PayPal Core SDK for PHP

  Sources   Download

Apache2

The Requires

  • php >=5.3.0
  • ext-curl *

 

The Development Requires

php sdk paypal

21/11 2015

v3.2.1

3.2.1.0 https://github.com/paypal/sdk-core-php

PayPal Core SDK for PHP

  Sources   Download

Apache2

The Requires

  • php >=5.3.0
  • ext-curl *

 

The Development Requires

php sdk paypal

22/09 2015

dev-master

9999999-dev https://github.com/paypal/sdk-core-php

PayPal Core SDK for PHP

  Sources   Download

Apache2

The Requires

  • php >=5.2.0
  • ext-curl *

 

The Development Requires

php sdk paypal

22/09 2015

v3.1.0

3.1.0.0 https://github.com/paypal/sdk-core-php

PayPal Core SDK for PHP

  Sources   Download

Apache2

The Requires

  • php >=5.2.0
  • ext-curl *

 

The Development Requires

php sdk paypal

22/09 2015

v3.2.0

3.2.0.0 https://github.com/paypal/sdk-core-php

PayPal Core SDK for PHP

  Sources   Download

Apache2

The Requires

  • php >=5.3.0
  • ext-curl *

 

The Development Requires

php sdk paypal

19/05 2015

v3.0.0

3.0.0.0 https://github.com/paypal/sdk-core-php

PayPal Core SDK for PHP

  Sources   Download

Apache2

The Requires

  • php >=5.3.0
  • ext-curl *

 

The Development Requires

php sdk paypal

18/02 2015

v2.5.9

2.5.9.0 https://github.com/paypal/sdk-core-php

PayPal Core SDK for PHP

  Sources   Download

Apache2

The Requires

  • php >=5.3.0
  • ext-curl *

 

The Development Requires

php sdk paypal

17/02 2015

v1.5.7

1.5.7.0 https://github.com/paypal/sdk-core-php

PayPal Core SDK for PHP

  Sources   Download

Apache2

The Requires

  • php >=5.2.0
  • ext-curl *

 

The Development Requires

php sdk paypal

05/02 2015

v2.5.8

2.5.8.0 https://github.com/paypal/sdk-core-php

PayPal Core SDK for PHP

  Sources   Download

Apache2

The Requires

  • php >=5.3.0
  • ext-curl *

 

The Development Requires

php sdk paypal

10/11 2014

v2.5.7

2.5.7.0 https://github.com/paypal/sdk-core-php

PayPal Core SDK for PHP

  Sources   Download

Apache2

The Requires

  • php >=5.3.0
  • ext-curl *

 

The Development Requires

php sdk paypal

10/11 2014

dev-stable-php5.3

dev-stable-php5.3 https://github.com/paypal/sdk-core-php

PayPal Core SDK for PHP

  Sources   Download

Apache2

The Requires

  • php >=5.3.0
  • ext-curl *

 

The Development Requires

php sdk paypal

10/11 2014

v1.5.6

1.5.6.0 https://github.com/paypal/sdk-core-php

PayPal Core SDK for PHP

  Sources   Download

Apache2

The Requires

  • php >=5.2.0
  • ext-curl *

 

The Development Requires

php sdk paypal

16/10 2014

v2.5.6

2.5.6.0 https://github.com/paypal/sdk-core-php

PayPal Core SDK for PHP

  Sources   Download

Apache2

The Requires

  • php >=5.3.0
  • ext-curl *

 

The Development Requires

php sdk paypal

15/10 2014

v2.5.5

2.5.5.0 https://github.com/paypal/sdk-core-php

PayPal Core SDK for PHP

  Sources   Download

Apache2

The Requires

  • php >=5.3.0
  • ext-curl *

 

The Development Requires

php sdk paypal

15/10 2014

v1.5.5

1.5.5.0 https://github.com/paypal/sdk-core-php

PayPal Core SDK for PHP

  Sources   Download

Apache2

The Requires

  • php >=5.2.0
  • ext-curl *

 

The Development Requires

php sdk paypal

23/09 2014

v2.5.4

2.5.4.0 https://github.com/paypal/sdk-core-php

PayPal Core SDK for PHP

  Sources   Download

Apache2

The Requires

  • php >=5.3.0
  • ext-curl *

 

The Development Requires

php sdk paypal

30/07 2014

dev-stable

dev-stable https://github.com/paypal/sdk-core-php

PayPal Core SDK for PHP

  Sources   Download

Apache2

The Requires

  • php >=5.2.0
  • ext-curl *

 

php sdk paypal

30/07 2014

v1.5.4

1.5.4.0 https://github.com/paypal/sdk-core-php

PayPal Core SDK for PHP

  Sources   Download

Apache2

The Requires

  • php >=5.2.0
  • ext-curl *

 

php sdk paypal

20/05 2014

v2.5.2

2.5.2.0 https://github.com/paypal/sdk-core-php

PayPal Core SDK for PHP

  Sources   Download

Apache2

The Requires

  • php >=5.3.0
  • ext-curl *

 

php sdk paypal

15/05 2014

v2.5.1

2.5.1.0 https://github.com/paypal/sdk-core-php

PayPal Core SDK for PHP

  Sources   Download

Apache2

The Requires

  • php >=5.3.0
  • ext-curl *

 

php sdk paypal

14/05 2014

v1.5.3

1.5.3.0 https://github.com/paypal/sdk-core-php

PayPal Core SDK for PHP

  Sources   Download

Apache2

The Requires

  • php >=5.2.0
  • ext-curl *

 

php sdk paypal

12/05 2014

v1.5.2

1.5.2.0 https://github.com/paypal/sdk-core-php

PayPal Core SDK for PHP

  Sources   Download

Apache2

The Requires

  • php >=5.2.0
  • ext-curl *

 

php sdk paypal

12/05 2014

v1.4.3

1.4.3.0 https://github.com/paypal/sdk-core-php

PayPal Core SDK for PHP

  Sources   Download

Apache2

The Requires

  • php >=5.2.0
  • ext-curl *

 

php sdk paypal

07/05 2014

v1.5.1

1.5.1.0 https://github.com/paypal/sdk-core-php

PayPal Core SDK for PHP

  Sources   Download

Apache2

The Requires

  • php >=5.2.0
  • ext-curl *

 

php sdk paypal

26/09 2013

v1.5.0

1.5.0.0 https://github.com/paypal/sdk-core-php

PayPal Core SDK for PHP

  Sources   Download

Apache2

The Requires

  • php >=5.2.0
  • ext-curl *

 

php sdk paypal

26/09 2013

v2.5.0

2.5.0.0 https://github.com/paypal/sdk-core-php

PayPal Core SDK for PHP

  Sources   Download

Apache2

The Requires

  • php >=5.3.0
  • ext-curl *

 

php sdk paypal

11/09 2013

v2.4.3

2.4.3.0 https://github.com/paypal/sdk-core-php

PayPal Core SDK for PHP

  Sources   Download

Apache2

The Requires

  • php >=5.3.0
  • ext-curl *

 

php sdk paypal

11/09 2013

v1.4.2

1.4.2.0 https://github.com/paypal/sdk-core-php

PayPal Core SDK for PHP

  Sources   Download

Apache2

The Requires

  • php >=5.2.0
  • ext-curl *

 

php sdk paypal

22/08 2013

v2.4.2

2.4.2.0 https://github.com/paypal/sdk-core-php

PayPal Core SDK for PHP

  Sources   Download

Apache2

The Requires

  • php >=5.3.0
  • ext-curl *

 

php sdk paypal

11/06 2013

v2.4.1

2.4.1.0 https://github.com/paypal/sdk-core-php

PayPal Core SDK for PHP

  Sources   Download

Apache2

The Requires

  • php >=5.3.0
  • ext-curl *

 

php sdk paypal

11/06 2013

v1.4.1

1.4.1.0 https://github.com/paypal/sdk-core-php

PayPal Core SDK for PHP

  Sources   Download

Apache2

The Requires

  • php >=5.2.0
  • ext-curl *

 

php sdk paypal

21/05 2013

v2.4.0

2.4.0.0 https://github.com/paypal/sdk-core-php

PayPal Core SDK for PHP

  Sources   Download

Apache2

The Requires

  • php >=5.3.0
  • ext-curl *

 

php sdk paypal

26/04 2013

v1.4.0

1.4.0.0 https://github.com/paypal/sdk-core-php

PayPal Core SDK for PHP

  Sources   Download

Apache2

The Requires

  • php >=5.2.0
  • ext-curl *

 

php sdk paypal

27/03 2013

v1.3.0

1.3.0.0 https://github.com/paypal/sdk-core-php

PayPal Core SDK for PHP

  Sources   Download

Apache2

The Requires

  • php >=5.2.0
  • ext-curl *

 

php sdk paypal

06/03 2013

V1.2.0

1.2.0.0 https://github.com/paypal/sdk-core-php

PayPal Core SDK for PHP

  Sources   Download

Apache2

The Requires

  • php >=5.2.0
  • ext-curl *

 

php sdk paypal

12/02 2013

v1.1

1.1.0.0 https://x.com

PayPal Core SDK for PHP

  Sources   Download

Apache2

The Requires

  • php >=5.2.0
  • ext-curl *

 

php sdk paypal