PHPackages                             tanjarlan/omnipay-cmbpay - 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. tanjarlan/omnipay-cmbpay

ActiveLibrary[Payment Processing](/categories/payments)

tanjarlan/omnipay-cmbpay
========================

Cmb gateway for Omnipay payment processing library

v1.0.0-beta.2(5y ago)013MITPHP

Since Apr 1Pushed 4y ago1 watchersCompare

[ Source](https://github.com/tanjarlan/omnipay-cmbpay)[ Packagist](https://packagist.org/packages/tanjarlan/omnipay-cmbpay)[ RSS](/packages/tanjarlan-omnipay-cmbpay/feed)WikiDiscussions main Synced yesterday

READMEChangelog (6)Dependencies (3)Versions (8)Used By (0)

Omnipay:CmbPay
==============

[](#omnipaycmbpay)

**CmbPay driver for the Omnipay PHP payment processing library**

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

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

[](#installation)

Omnipay is installed via [Composer](http://getcomposer.org/). To install:

```
composer require tanjarlan/omnipay-cmbpay

```

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

[](#basic-usage)

The following gateways are provided by this package:

- CmbPay\_H5 (Cmb H5 Gateway) 招行支付H5网关
- Coming soon...

Usage
-----

[](#usage)

### Create Order [doc](http://openhome.cmbchina.com/PayNew/pay/doc/cell/H5/OneCardPayAPI)

[](#create-order-doc)

```
//gateways: CmbPay_H5, ...
$gateway    = Omnipay::create('CmbPay_H5');
$gateway->setBranchNo($config['branchNo']);
$gateway->setMerchantNo($config['merchantNo']);
$gateway->setMerchantKey($config['merchantKey']);

$order = [
    'orderNo' => '202104011000000002',
    'amount' => '0.01'
];

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

if ($response->isSuccessful()) {
    return $response->redirect();
} else {
    return $response->getMessage();
}
```

### Refund [doc](http://openhome.cmbchina.com/PayNew/pay/doc/cell/H5/RefundAPI)

[](#refund-doc)

```
$response = $gateway->refund([
    'orderNo' => '202104011000000002',
    'amount' => '0.01',
    'refundSerialNo' => 'RFD0002'
])->send();

if ($response->isSuccessful()) {
    return 'refund success';
}

return $response->getMessage();
```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 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 ~12 days

Total

6

Last Release

1807d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5962948?v=4)[bever](/maintainers/bever)[@Bever](https://github.com/Bever)

---

Top Contributors

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

---

Tags

phpsdkpaymentgatewayapppayomnipaypurchasecmb

### Embed Badge

![Health badge](/badges/tanjarlan-omnipay-cmbpay/health.svg)

```
[![Health](https://phpackages.com/badges/tanjarlan-omnipay-cmbpay/health.svg)](https://phpackages.com/packages/tanjarlan-omnipay-cmbpay)
```

###  Alternatives

[lokielse/omnipay-wechatpay

Wechat gateway for Omnipay payment processing library

329224.5k7](/packages/lokielse-omnipay-wechatpay)[lokielse/omnipay-unionpay

UnionPay gateway for Omnipay payment processing library

11358.1k2](/packages/lokielse-omnipay-unionpay)

PHPackages © 2026

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