phuongdev89/omnipay-voguepay
Composer 安装命令:
composer require phuongdev89/omnipay-voguepay
包简介
Omnipay for Voguepay
关键字:
README 文档
README
Omnipay for Voguepay
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist phuongdev89/omnipay-voguepay "*"
or add
"phuongdev89/omnipay-voguepay": "*"
to the require section of your composer.json file.
Usage
The following gateways are provided by this package:
- Voguepay
For general usage instructions, please see the main Omnipay repository.
Example
Create payment url
$gateway = Omnipay::create('Voguepay'); $gateway->initialize(array( 'demo' => true, 'v_merchant_id' => '' )); $response = $gateway->payUrl([ 'total' => 10.00, 'memo' => 'Payment description', 'cur' => 'USD', 'merchant_ref' => 'Your payment identity', ])->send(); if ($response->isSuccessful()) { $data = $response->getData(); }
Get transaction detail
$gateway = Omnipay::create('Voguepay'); $gateway->initialize(array( 'demo' => true, 'v_merchant_id' => '' )); $response = $gateway->transaction([ 'v_transaction_id' => '9GAS78ETG', 'type' => 'json', ])->send(); if ($response->isSuccessful()) { $data = $response->getData(); }
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-01-10