cedricblondeau/php-moneris-eselectplus
Composer 安装命令:
composer require cedricblondeau/php-moneris-eselectplus
包简介
An alternative and modern way to access the Moneris eSELECTplus API with PHP 5.3+.
关键字:
README 文档
README
An alternative and modern way to access the Moneris eSELECTplus API with PHP 5.3+.
This library was initially a fork of ironkeith/moneris-eselectplus-api.
Motivation
I needed to integrate Moneris with a nice and modern PHP project and did not want to include the source code they provide.
Keith Silgard did an awesome job by writing an alternative library but I wanted something with namespaces, PSR-4 support, unit testing and Vault API functions, so I decided to fork it and finally, to fully redesign and rewrite it for PHP 5.3+.
Usage example
use CedricBlondeau\Moneris; // Config $config = new Config('test_api_key', 'store1'); $config->setEnvironment(Config::ENV_TESTING); // Purchase transaction $transaction = new Moneris\Transaction\Basic\Purchase($config, array( 'cc_number' => '4242424242424242', 'expiry_month' => 10, 'expiry_year' => 18, 'order_id' => 'test' . date("dmy-G:i:s"), 'amount' => 100 )); // CURL $httpClient = new Moneris\Http\Client\Curl($transaction); $result = $httpClient->execute();
统计信息
- 总下载量: 450
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-12-10