承接 rede/acquiring 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

rede/acquiring

最新稳定版本:v1.0.2

Composer 安装命令:

composer require rede/acquiring

包简介

E-Rede Acquiring PHP Library

README 文档

README

A PHP client to use the E-Rede Acquiring Web Service.

Code Climate Test Coverage wercker status

Requirements

PHP 5.3.3 and later.

Composer

You can install the bindings via Composer. Add this to your composer.json:

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

Then install via:

composer.phar install

To use the bindings, use Composer's autoload:

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.

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

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

$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

E-Rede Acquiring Web Service Documentation

Please see https://www.userede.com.br/desenvolvedores for up-to-date documentation

Tests

In order to run tests first install PHPUnit via Composer:

composer.phar update --dev

To run the test suite:

./vendor/bin/phpunit

统计信息

  • 总下载量: 145
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 8
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-06-12