PHPackages                             wjminions/omnipay-migs-hosted-checkout - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Payment Processing](/categories/payments)
4. /
5. wjminions/omnipay-migs-hosted-checkout

ActiveLibrary[Payment Processing](/categories/payments)

wjminions/omnipay-migs-hosted-checkout
======================================

Migs Hosted Checkout gateway for Omnipay payment processing library

1.1.1(7y ago)034[1 issues](https://github.com/wjminions/omnipay-migs-hosted-checkout/issues)MITPHP

Since Jul 10Pushed 7y agoCompare

[ Source](https://github.com/wjminions/omnipay-migs-hosted-checkout)[ Packagist](https://packagist.org/packages/wjminions/omnipay-migs-hosted-checkout)[ Docs](https://github.com/wjminons/omnipay-migs-hosted-checkout)[ RSS](/packages/wjminions-omnipay-migs-hosted-checkout/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (1)Versions (13)Used By (0)

Omnipay: MigsHostedCheckout
===========================

[](#omnipay-migshostedcheckout)

**migs-hosted-checkout driver for the Omnipay PHP payment processing library**

[![Build Status](https://camo.githubusercontent.com/5e601f0e031fc3e3a46f9a1c3b3df825abcdae56e3036c31d954120116c54702/68747470733a2f2f7472617669732d63692e6f72672f6c6f6b69656c73652f6f6d6e697061792d6d6967732d686f737465642d636865636b6f75742e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/lokielse/omnipay-migs-hosted-checkout)[![Latest Stable Version](https://camo.githubusercontent.com/06638a3f209acc1ac53db504bad541641dfc349780e07658c055b082b8c8ee76/68747470733a2f2f706f7365722e707567782e6f72672f6c6f6b69656c73652f6f6d6e697061792d6d6967732d686f737465642d636865636b6f75742f76657273696f6e2e706e67)](https://packagist.org/packages/lokielse/omnipay-migs-hosted-checkout)[![Total Downloads](https://camo.githubusercontent.com/fb0435d2591cfcddd3f10fc64a071381a3d622e2f352195d1f3453c9736ec760/68747470733a2f2f706f7365722e707567782e6f72672f6c6f6b69656c73652f6f6d6e697061792d6d6967732d686f737465642d636865636b6f75742f642f746f74616c2e706e67)](https://packagist.org/packages/lokielse/omnipay-migs-hosted-checkout)

[Omnipay](https://github.com/omnipay/omnipay) is a framework agnostic, multi-gateway payment processing library for PHP 5.3+. This package implements migs-hosted-checkout support for Omnipay.

Installation
------------

[](#installation)

Omnipay is installed via [Composer](http://getcomposer.org/). To install, simply add it to your `composer.json` file:

```
{
    "require": {
        "lokielse/omnipay-migs-hosted-checkout": "dev-master"
    }
}
```

And run composer to update your dependencies:

```
$ curl -s http://getcomposer.org/installer | php
$ php composer.phar update

```

Basic Usage
-----------

[](#basic-usage)

The following gateways are provided by this package:

Usage
-----

[](#usage)

Sandbox Param can be found at: [Apple Pay Developer Center](https://open.migs-hosted-checkout.com/ajweb/account/testPara)

### Consume

[](#consume)

```
$gateway    = Omnipay::create('migs-hosted-checkout_Express');
$gateway->setMerId($config['merId']);
$gateway->setReturnUrl($config['returnUrl']);
$gateway->setNotifyUrl($config['notifyUrl']);

$order = [
    'orderId'   => date('YmdHis'), //Your order ID
    'txnTime'   => date('YmdHis'), //Should be format 'YmdHis'
    'orderDesc' => 'My order title', //Order Title
    'txnAmt'    => '100', //Order Total Fee
];

$response = $gateway->purchase($order)->send();

$response->getRedirectHtml(); //For PC/Wap
$response->getTradeNo(); //For APP
```

### Return/Notify

[](#returnnotify)

```
$gateway    = Omnipay::create('ApplePay_Apple');
$gateway->setMerId($config['merId']);
$response = $gateway->completePurchase(['request_params'=>$_REQUEST])->send();
if ($response->isPaid()) {
    //pay success
}else{
    //pay fail
}
```

### Query Order Status

[](#query-order-status)

```
$response = $gateway->Omnipay::queryStatus([
    'orderId' => '20150815121214', //Your site trade no, not union tn.
    'txnTime' => '20150815121214', //Order trade time
    'txnAmt'  => '200', //Order total fee
])->send();

var_dump($response->isSuccessful());
var_dump($response->getData());
```

### Consume Undo

[](#consume-undo)

```
$response = $gateway->consumeUndo([
    'orderId' => '20150815121214', //Your site trade no, not union tn.
    'txnTime' => date('YmdHis'), //Regenerate a new time
    'txnAmt'  => '200', //Order total fee
    'queryId' => 'xxxxxxxxx', //Order total fee
])->send();

var_dump($response->isSuccessful());
var_dump($response->getData());
```

### Refund

[](#refund)

```
$response = $gateway->refund([
    'orderId' => '20150815121214', //Your site trade no, not union tn.
    'txnTime' => '20150815121214', //Order trade time
    'txnAmt'  => '200', //Order total fee
])->send();

var_dump($response->isSuccessful());
var_dump($response->getData());
```

### File Transfer

[](#file-transfer)

```
$response = $gateway->fileTransfer([
    'txnTime'    => '20150815121214', //Order trade time
    'settleDate' => '0119', //Settle Date
    'fileType'   => '00', //File Type
])->send();

var_dump($response->isSuccessful());
var_dump($response->getData());
```

For general usage instructions, please see the main [Omnipay](https://github.com/omnipay/omnipay)repository.

Related
-------

[](#related)

- [Laravel-Omnipay](https://github.com/ignited/laravel-omnipay)
- [Omnipay-Alipay](https://github.com/lokielse/omnipay-alipay)
- [Omnipay-WechatPay](https://github.com/lokielse/omnipay-wechatpay)

Support
-------

[](#support)

If you are having general issues with Omnipay, we suggest posting on [Stack Overflow](http://stackoverflow.com/). Be sure to add the [omnipay tag](http://stackoverflow.com/questions/tagged/omnipay) so it can be easily found.

If you want to keep up to date with release anouncements, discuss ideas for the project, or ask more detailed questions, there is also a [mailing list](https://groups.google.com/forum/#!forum/omnipay) which you can subscribe to.

If you believe you have found a bug, please report it using the [GitHub issue tracker](https://github.com/lokielse/omnipay-migs-hosted-checkout/issues), or better yet, fork the library and submit a pull request.

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~59 days

Recently: every ~150 days

Total

12

Last Release

2576d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/eb4a40ad98eecddf4397fa347a13899aa3d9f5e7889a7aceaaaad60f9408f4be?d=identicon)[wjminions](/maintainers/wjminions)

---

Top Contributors

[![wjminions](https://avatars.githubusercontent.com/u/22285550?v=4)](https://github.com/wjminions "wjminions (12 commits)")

---

Tags

paymentgatewaypaymerchantomnipaypurchasemigs-hosted-checkout

### Embed Badge

![Health badge](/badges/wjminions-omnipay-migs-hosted-checkout/health.svg)

```
[![Health](https://phpackages.com/badges/wjminions-omnipay-migs-hosted-checkout/health.svg)](https://phpackages.com/packages/wjminions-omnipay-migs-hosted-checkout)
```

###  Alternatives

[lokielse/omnipay-alipay

Alipay gateway for Omnipay payment processing library

587421.0k11](/packages/lokielse-omnipay-alipay)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
