phuongdev89 / omnipay-voguepay
Omnipay for Voguepay
dev-master
2023-01-10 15:59 UTC
Requires
- omnipay/common: ^3.0
This package is not auto-updated.
Last update: 2024-11-13 23:18:57 UTC
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(); }