2017 © Pedro Peláez
 

library payment-api

Payment API

image

rcastera/payment-api

Payment API

  • Sunday, February 2, 2014
  • by rcastera
  • Repository
  • 2 Watchers
  • 6 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

PaymentAPI

The PaymentAPI allows you to easily process e-commerce transactions without having to worry about all the backend details of connecting and setting up the cURL options., (*1)

  • An extremely easy API.
  • Extensible to add many different payment gateways.
  • Consumes gateway api's using the Guzzle client.

### Supported gateways

There are several gateways (Stripe, Authorize.net and Paypal to name a few) and more will be added but, if you need one that isn't supported yet, feel free to contribute. See supported gateways., (*2)

### Setup

Add a composer.json file to your project:, (*3)

{
  "require": {
      "rcastera/payment-api": "v1.0.0"
  }
}

Then provided you have composer installed, you can run the following command:, (*4)

$ composer.phar install

That will fetch the library and its dependencies inside your vendor folder. Then you can add the following to your .php files in order to use the library (if you don't already have one)., (*5)

require 'vendor/autoload.php';

Then you need to use the relevant class, and instantiate the gateway., (*6)

### Example

require 'vendor/autoload.php';

use rcastera\PaymentAPI\Factory\PaymentFactory;
use rcastera\PaymentAPI\Exception\PaymentException;
use rcastera\PaymentApi\Util\PaymentUtil;

$authorize = PaymentFactory::get('Authorize.Aim');

### Utility class

There's a utility class that's included for convenince. Learn more about the Utility class, (*7)

### Contributing

  1. Fork it.
  2. Create a branch (git checkout -b my_branch)
  3. Commit your changes (git commit -am "Added something")
  4. Push to the branch (git push origin my_branch)
  5. Create an Issue with a link to your branch
  6. Enjoy a refreshing Coke and wait

The Versions

02/02 2014

dev-master

9999999-dev http://www.richardcastera.com

Payment API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Richard Castera

api payment pay money e-commerce

02/02 2014

v1.0.1

1.0.1.0 http://www.richardcastera.com

Payment API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Richard Castera

api payment pay money e-commerce

17/12 2013

v1.0.0

1.0.0.0 http://www.richardcastera.com

Payment API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Richard Castera

api payment pay money e-commerce