2017 © Pedro Peláez
 

library erede-acquiring

E-Rede Acquiring PHP Library

image

erick/erede-acquiring

E-Rede Acquiring PHP Library

  • Thursday, October 6, 2016
  • by erickmartim
  • Repository
  • 1 Watchers
  • 0 Stars
  • 15 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 17 Forks
  • 0 Open issues
  • 5 Versions
  • 50 % Grown

The README.md

E-Rede Acquiring PHP Library

A PHP client to use the E-Rede Acquiring Web Service., (*1)

Code Climate Test Coverage wercker status, (*2)

Requirements

PHP 5.3.3 and later., (*3)

Composer

You can install the bindings via Composer. Add this to your composer.json:, (*4)

{
  "require": {
    "rede/acquiring": "1.0.1"
  }
}

Then install via:, (*5)

composer.phar install

To use the bindings, use Composer's autoload:, (*6)

require_once('vendor/autoload.php');

Manual Installation

If you do not wish to use Composer, you can download the latest release. Then, to use the bindings, include the init.php file., (*7)

require_once('/path/to/erede-acquiring/init.php');

Getting Started

In order to increase the readability we suggest to declare the code below on the top of your file, (*8)

use \ERede\Acquiring\Acquirer;
use \ERede\Acquiring\TransactionType;

20 seconds tutorial

The simplest way to do a payment using the E-Rede Acquiring Web Service is using this code, (*9)

$data = array('credit_card' => '4242424242424242', 'exp_month' => 5, 'exp_year' => 2015, 'amount' => '1050', 'reference' => '1234', 'capture' => true);
$acquirer = new Acquirer("FILIATION", "PASSWORD");
$response = $acquirer->fetch(TransactionType::CREDIT)->authorize($data);
print_r($response);

Next steps

Find more details about how to use this library, (*10)

E-Rede Acquiring Web Service Documentation

Please see https://www.userede.com.br/desenvolvedores for up-to-date documentation, (*11)

Tests

In order to run tests first install PHPUnit via Composer:, (*12)

composer.phar update --dev

To run the test suite:, (*13)

./vendor/bin/phpunit

The Versions

06/10 2016

dev-master

9999999-dev https://userede.com.br/

E-Rede Acquiring PHP Library

  Sources   Download

MIT

The Requires

 

The Development Requires

api payment processing e-rede acquirer

01/08 2015

v1.0.2

1.0.2.0 https://userede.com.br/

E-Rede Acquiring PHP Library

  Sources   Download

MIT

The Requires

 

The Development Requires

api payment processing e-rede acquirer

17/06 2015

v1.0.1

1.0.1.0 https://userede.com.br/

E-Rede Acquiring PHP Library

  Sources   Download

MIT

The Requires

 

The Development Requires

api payment processing e-rede acquirer

16/06 2015

v1.0

1.0.0.0 https://userede.com.br/

E-Rede Acquiring PHP Library

  Sources   Download

MIT

The Requires

 

The Development Requires

api payment processing e-rede acquirer

13/06 2015

v0.1-alpha

0.1.0.0-alpha https://userede.com.br/

E-Rede Acquiring PHP Library

  Sources   Download

MIT

The Requires

 

The Development Requires

api payment processing e-rede acquirer