2017 © Pedro Peláez
 

library ebanx

EBANX PHP library

image

ebanx/ebanx

EBANX PHP library

  • Wednesday, January 3, 2018
  • by ebanx
  • Repository
  • 13 Watchers
  • 15 Stars
  • 61,735 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 8 Forks
  • 3 Open issues
  • 13 Versions
  • 10 % Grown

The README.md

EBANX PHP Library Build Status Code Climate Test Coverage

EBANX is the market leader in e-commerce payment solutions for International Merchants selling online to Brazil. This library enables you to integrate EBANX with any PHP application., (*1)

Requirements

  • PHP >= 5.3
  • cURL

Installation

Composer

The EBANX library is available on Packagist (https://packagist.org/packages/ebanx/ebanx), therefore you can install it by simply updating your composer.json file:, (*2)

``` json { "require" : { "ebanx/ebanx": "dev-master" } }, (*3)

After that run _composer install_ and wait for it to finish. Include the Composer
generated autoloader from 'vendor/autoload.php' and you're ready to use the library.

### Git Repository
Clone the git repository anywhere you want and include the EBANX library autoloader
from 'src/autoload.php'.

## Usage
### Setup
To use the EBANX PHP library you need to setup your integration key.
``` php
\Ebanx\Config::setIntegrationKey('your-integration-key');

If you need to change other settings, you can use the following function call: ``` php \Ebanx\Config::set([ 'integrationKey' => 'your-integration-key' , 'testMode' => true ]);, (*4)


You can change the following settings: * integrationKey: your integration key. It will be different in test and production modes. * testMode: enable or disable the test mode. The default value is _false_. * directMode: enable or disable the direct checkout mode. The default value is _false_. To create a new API request, just call one of the following methods on the \Ebanx\Ebanx class and supply it with the request parameters: * \Ebanx\Ebanx::doCancel * \Ebanx\Ebanx::doCapture * \Ebanx\Ebanx::doExchange * \Ebanx\Ebanx::doPrintHtml * \Ebanx\Ebanx::doQuery * \Ebanx\Ebanx::doRefund * \Ebanx\Ebanx::doRefundOrCancel * \Ebanx\Ebanx::doRequest * \Ebanx\Ebanx::doToken * \Ebanx\Ebanx::doZipcode doRequest command example: ``` php require_once __DIR__ . 'vendor/autoload.php'; \Ebanx\Config::setIntegrationKey('6e556ff76e55...56ff7'); $request = \Ebanx\Ebanx::doRequest([ 'currency_code' => 'USD' , 'amount' => 119.90 , 'name' => 'Jose da Silva' , 'email' => 'jose@example.org' , 'payment_type_code' => 'boleto' , 'merchant_payment_code' => '10101101' ]);

Changelog

  • 1.11.0: changed EBANX API Endpoint
  • 1.10.0: added Curl
  • 1.9.0: added getBankList operation
  • 1.8.0: added documentBalance operation
  • 1.7.0: added hardcoded autoloader, removed Guzzle to avoid dependencies
  • 1.6.1: removed manual autoloader
  • 1.6.0: added fallback HTTP client for environments without curl
  • 1.5.1: removed modify method, removed request constraints
  • 1.5.0: changed HTTP client to Guzzle
  • 1.4.1: updated production URL.
  • 1.4.0: added custom user agent, made library PSR compliant.
  • 1.3.0: added Zipcode operation, improved HTTP Client error handling.
  • 1.2.1: updated autoloader and sandbox URL.
  • 1.2.0: added Token operation.
  • 1.1.0: added business person to Direct mode.
  • 1.0.0: first release.

The Versions

03/01 2018

dev-master

9999999-dev https://ebanx.com

EBANX PHP library

  Sources   Download

BSD

The Requires

  • php >=5.3.0
  • ext-curl *

 

The Development Requires

by Gustavo Henrique Mascarenhas Machado

api payment processing ebanx

02/05 2016

dev-hotfix-lib

dev-hotfix-lib https://ebanx.com

EBANX PHP library

  Sources   Download

BSD

The Requires

  • php >=5.3.0
  • ext-curl *

 

The Development Requires

by Gustavo Henrique Mascarenhas Machado

api payment processing ebanx

04/11 2015

v1.9.0

1.9.0.0 https://ebanx.com

EBANX PHP library

  Sources   Download

BSD

The Requires

  • php >=5.3.0
  • ext-curl *

 

The Development Requires

by Gustavo Henrique Mascarenhas Machado

api payment processing ebanx

21/10 2015

v1.8.0

1.8.0.0 https://ebanx.com

EBANX PHP library

  Sources   Download

BSD

The Requires

  • php >=5.3.0
  • ext-curl *

 

The Development Requires

by Gustavo Henrique Mascarenhas Machado

api payment processing ebanx

18/02 2015

v1.7.0

1.7.0.0 https://ebanx.com

EBANX PHP library

  Sources   Download

BSD

The Requires

  • php >=5.3.0
  • ext-curl *

 

The Development Requires

by Gustavo Henrique Mascarenhas Machado

api payment processing ebanx

18/02 2015

v1.6.1

1.6.1.0 https://ebanx.com

EBANX PHP library

  Sources   Download

BSD

The Requires

 

The Development Requires

by Gustavo Henrique Mascarenhas Machado

api payment processing ebanx

11/02 2015

1.6.0

1.6.0.0 https://ebanx.com

EBANX PHP library

  Sources   Download

BSD

The Requires

 

The Development Requires

by Gustavo Henrique Mascarenhas Machado

api payment processing ebanx

29/01 2015

1.5.1

1.5.1.0 https://ebanx.com

EBANX PHP library

  Sources   Download

BSD

The Requires

 

The Development Requires

by Gustavo Henrique Mascarenhas Machado

api payment processing ebanx

29/01 2015

1.5.0

1.5.0.0 https://ebanx.com

EBANX PHP library

  Sources   Download

BSD

The Requires

 

The Development Requires

by Gustavo Henrique Mascarenhas Machado

api payment processing ebanx

16/09 2014

1.4.1

1.4.1.0 https://ebanx.com

EBANX PHP library

  Sources   Download

BSD

The Requires

  • php >=5.3.0
  • ext-curl *

 

The Development Requires

by Gustavo Henrique Mascarenhas Machado

api payment processing ebanx

16/07 2014

1.4.0

1.4.0.0 https://ebanx.com

EBANX PHP library

  Sources   Download

BSD

The Requires

  • php >=5.3.0
  • ext-curl *

 

The Development Requires

by Gustavo Henrique Mascarenhas Machado

api payment processing ebanx

26/05 2014

1.3.0

1.3.0.0 https://ebanx.com

EBANX PHP library

  Sources   Download

BSD

The Requires

  • php >=5.3.0
  • ext-curl *

 

The Development Requires

by Gustavo Henrique Mascarenhas Machado

api payment processing ebanx

24/12 2013

1.0.0

1.0.0.0 https://ebanx.com

EBANX PHP library

  Sources   Download

BSD

The Requires

  • php >=5.3.0
  • ext-curl *

 

The Development Requires

by Gustavo Henrique Mascarenhas Machado

api payment processing ebanx