2017 © Pedro Peláez
 

library paypal-rest-api-client

PHP Library for accessing PayPal Rest API.

image

p16/paypal-rest-api-client

PHP Library for accessing PayPal Rest API.

  • Tuesday, December 1, 2015
  • by p16
  • Repository
  • 1 Watchers
  • 1 Stars
  • 51 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 8 Versions
  • 0 % Grown

The README.md

PHP PayPal REST API Client

Build Status Latest Stable Version Total Downloads Latest Unstable Version License, (*1)

This library wants to be a PHP client for the PayPal REST API., (*2)

There is an official SDK and you can find it here., (*3)

I tried it and I tried to contribute on it (the tests were calling the actual paypal sandbox). But I needed a simpler and OOP library, and I did not have the time to contribute as much as I think is needed on the official one, therefore I did this one., (*4)

I'm working on a first stable realease that should be out before August 15th., (*5)

Feedback, PR and contribution are welcome., (*6)

Features

At the moment the only PayPal REST API calls implemented are:, (*7)

  • Require an access token: https://developer.paypal.com/docs/api/#authentication--headers
  • Create a payment (only with "paypal" and "credit_card" payment methods): https://developer.paypal.com/docs/api/#create-a-payment
  • Execute a payment: https://developer.paypal.com/docs/api/#execute-an-approved-paypal-payment
  • Authorize and capture a payment: https://developer.paypal.com/docs/integration/direct/capture-payment/
  • Validation of json schema for payment request body: Json Schema, PHP Json Schema validator, PayPal REST API objects

Installation

Run, (*8)

composer require p16/paypal-rest-api-client:1.0.0

or edit your composer.json as follow, (*9)

...
    "require": {
        "p16/paypal-rest-api-client": "1.0.0"
        ...
    }
...

and then run, (*10)

composer update p16/paypal-rest-api-client

Running tests

Donwload the repository, (*11)

Run, (*12)

composer install

From the root folder run, (*13)

./vendor/bin/phpunit -c .

Documentation

Using the library, (*14)

PayPal Json schema validation, (*15)

A Json Schema validator is used to validate a call request body. You can find all the available schema definition here., (*16)

TO-DO for release 1.1.0, (*17)

  • Move PayPalJsonSchemaValidator into a standalone repo (?), (*18)

  • Make the builder aware of the PayPalJsonSchemaValidator, so that they can validate what they are building when building from/to json, (*19)

  • Add strict validation to model classes (?), (*20)

TO-DO for release 1.2.0, (*21)

License

Licensed under the MIT license, (*22)

Read LICENSE for more information, (*23)

The Versions

01/12 2015

dev-master

9999999-dev

PHP Library for accessing PayPal Rest API.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Filippo De Santis

paypal rest api client

01/12 2015

dev-upgrades

dev-upgrades

PHP Library for accessing PayPal Rest API.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Filippo De Santis

paypal rest api client

01/12 2015

v1.0.0

1.0.0.0

PHP Library for accessing PayPal Rest API.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Filippo De Santis

paypal rest api client

30/11 2015

dev-doc

dev-doc

PHP Library for accessing PayPal Rest API.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Filippo De Santis

paypal rest api client

25/10 2015

dev-issue-1

dev-issue-1

PHP Library for accessing PayPal Rest API.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Filippo De Santis

paypal rest api client

25/10 2015

v0.1.2

0.1.2.0

PHP Library for accessing PayPal Rest API.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Filippo De Santis

paypal rest api client

13/08 2014

v0.1.1

0.1.1.0

PHP Library for accessing PayPal Rest API.

  Sources   Download

MIT

The Requires

 

by Filippo De Santis

paypal rest api client

13/08 2014

v0.1.0

0.1.0.0

PHP Library for accessing PayPal Rest API.

  Sources   Download

MIT

The Requires

 

by Filippo De Santis

paypal rest api client