Skip to content

Ipay driver for the Omnipay payment processing library

Notifications You must be signed in to change notification settings

xtianatilano/omnipay-ipay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Omnipay: Ipay

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.

Installation

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

Basic Usage

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();
}

About

Ipay driver for the Omnipay payment processing library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages