Ipay driver for the Omnipay PHP payment processing library
Omnipay is a framework agnostic, multi-gateway payment processing library for PHP 5.3+. This package implements Ipay support for Omnipay.
Omnipay is installed via Composer. To install, simply add it
to your composer.json
file:
{
"require": {
"xtianproject/omnipay-ipay": "~1.0@dev"
},
"repositories": [
{
"type": "vcs",
"url": "https://github.com/xtianproject/omnipay-ipay"
}
]
}
And run composer to update your dependencies:
$ curl -s http://getcomposer.org/installer | php
$ php composer.phar update
The following gateways are provided by this package:
- Ipay
For general usage instructions:
use Omnipay\Omnipay;
$gateway = Omnipay::create('Ipay');
$formData = [
"merchantCode" => "",
"billNumber" => "",
"amount" => "",
"currency" => "",
"gatewayType" => "",
"languageCode" => "",
"returnUrl" => "",
"orderEncodeType" => "",
"retEncodeType" => "",
"retType" => '',
"notifyUrl" => "",
"merchantKey" => "",
"testMode" => true,
];
$response = $gateway->redirect($formData)->send();
if ($response->isSuccessful()) {
$response->redirect();
}