badcow/eway
最新稳定版本:v0.2
Composer 安装命令:
composer require badcow/eway
包简介
A PHP library interacting with eWay API.
README 文档
README
This class is designed to make eWay payments very easy. Details about the API can be found on the eWay website
Example usage
The example below utilises the eWay test gateway
require_once __DIR__ . '/eWay/eWay.php';
use Badcow\eWay\eWay;
$eWay = new eWay('REAL_TIME_CVN', TRUE);
$eWay
->setCustomerID('87654321')
->setCardNumber('4444333322221111')
->setCardHoldersName('John Smith')
->setPaymentAmount(1.00)
->setCardExpiry('08', '09')
->setCVN('123')
->setCustomerFirstName('Firstname')
->setCustomerLastName('Lastname')
->setCustomerEmail('name@xyz.com.au')
->setCustomerAddress('123 Someplace Street, Somewhere ACT')
->setCustomerPostcode('2609')
->setCustomerInvoiceReference('INV120394')
->setCustomerInvoiceDescription('Testing')
->setCustomerTransactionReference('4230')
->setOption1('Option Number One')
->setOption2('Option Number Two')
->setOption3('Option Number Three')
;
$eWay->pay();
Each setter method will return the eway class allowing for chaining.
License
This software is free to use and distribute. Please see the license file.
统计信息
- 总下载量: 1.61k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 9
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2013-02-26