stevewinni/omnipay-creditcall
Composer 安装命令:
composer require stevewinni/omnipay-creditcall
包简介
Creditcall driver for the Omnipay PHP payment processing library. Fork of meebi/omnipay-creditcall to include cardCreate functions
README 文档
README
Creditcall gateway for the Omnipay PHP payment processing library
Omnipay is a framework agnostic, multi-gateway payment processing library for PHP 5.3+. This package implements Creditcall support for Omnipay.
Install
Via Composer
$ composer require stevewinni/omnipay-creditcall
Usage
The following gateways are provided by this package:
- Creditcall
For general usage instructions, please see the main Omnipay repository.
This driver supports following transaction types:
- authorize($options) - authorize an amount on the customer's card
- capture($options) - capture an amount you have previously authorized
- purchase($options) - authorize and immediately capture an amount on the customer's card
- refund($options) - refund an already processed transaction
- void($options) - generally can only be called up to 24 hours after submitting a transaction
Gateway instantiation:
$gateway = Omnipay::create('Creditcall');
$gateway->setTerminalId('1234567');
$gateway->setTransactionKey('5CbEvA8hDCe6ASd6');
$gateway->setTestMode(true);
Driver also supports paying with cardReference instead of card,
but gateway requires also additional parameter cardHash. It can be used in authorize and purchase requests like that:
$gateway->purchase([
'amount' => '10.00',
'cardReference' => 'abc',
'cardHash' => 'def123',
]);
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.
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 11
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-07-05