byjg/omnipay-komerci
Composer 安装命令:
composer require byjg/omnipay-komerci
包简介
Komerci is brazilian acquirer solution provided by Rede (former RedeCard) that accept payments with MasterCard, Visa and Diners Club International credit cards on the Internet
README 文档
README
Komerci WebService (Rede) driver for the Omnipay PHP payment processing library
Omnipay is a framework agnostic, multi-gateway payment processing library for PHP 5.3+.
Installation
Omnipay is installed via Composer. To install, simply add it
to your composer.json file:
{
"require": {
"byjg/omnipay-komerci": "~1.0"
}
}
And run composer to update your dependencies:
$ curl -s http://getcomposer.org/installer | php
$ php composer.phar update
Basic Usage
The following gateways are provided by this package:
- Komerci (Rede)
Komerci is the solution for e-commerce from Rede (former Redecard). Rede is a Brazilian acquirer. This is responsible for the authentication, authorization and capture the card data in the Rede environment.
NOTE: Before using this driver is necessary to register the IP in the Komerci website. If your IP is not registered you'll get an error 500 or an error code 23 - "Transação não autorizada".
// Setup payment gateway $gateway = Omnipay::create('Komerci'); $gateway->setApiKey('00000000'); $gateway->setUsername('user'); $gateway->setPassword('pass'); $gateway->setTestMode(true); // Example form data $formData = [ 'name' => 'Joao Magalhaes', 'number' => '4242424242424242', 'expiryMonth' => '6', 'expiryYear' => '2016', 'cvv' => '123' ]; // Send purchase request $response = $gateway->purchase( [ 'amount' => '10.00', 'transactionId' => '1234', 'card' => $formData, ] )->send();
Komerci have a test environment where the credicard will not be charged but you'll receive real messages for testing your system. Just use $gateway->setTestMode(true) for use the test environment.
For general usage instructions, please see the main Omnipay repository.
Implemented methods
- authorize
- capture
- purchse
- void
Support
If you are having general issues with Omnipay, we suggest posting on Stack Overflow. Be sure to add the omnipay tag so it can be easily found.
If you want to keep up to date with release anouncements, discuss ideas for the project, or ask more detailed questions, there is also a mailing list which you can subscribe to.
If you believe you have found a bug, please report it using the GitHub issue tracker, or better yet, fork the library and submit a pull request.
byjg/omnipay-komerci 适用场景与选型建议
byjg/omnipay-komerci 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 2.44k 次下载、GitHub Stars 达 3, 最近一次更新时间为 2016 年 02 月 18 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 byjg/omnipay-komerci 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 byjg/omnipay-komerci 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 2.44k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 17
- 依赖项目数: 6
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-02-18