PHPackages                             taiwan-pay/chb-payment - 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. taiwan-pay/chb-payment

ActiveLibrary[Payment Processing](/categories/payments)

taiwan-pay/chb-payment
======================

Payment library for CHB bank in Taiwan.

0.1(7y ago)021MITPHP ^7.1

Since Mar 16Pushed 7y ago2 watchersCompare

[ Source](https://github.com/TaiwanPay/CHBPayment)[ Packagist](https://packagist.org/packages/taiwan-pay/chb-payment)[ RSS](/packages/taiwan-pay-chb-payment/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

CHBPayment
==========

[](#chbpayment)

[![Build Status](https://camo.githubusercontent.com/c2b4ff32710fb5123bdbff9baad6af093200bf6363adb34ce6faad49b2ade9d7/68747470733a2f2f7472617669732d63692e6f72672f54616977616e5061792f4348425061796d656e742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/TaiwanPay/CHBPayment)[![codecov](https://camo.githubusercontent.com/cd11553e88164112fcf4095fd868e6f45d4f61b084bb43c1a9b51e797b6bf092/68747470733a2f2f636f6465636f762e696f2f67682f54616977616e5061792f4348425061796d656e742f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/TaiwanPay/CHBPayment)

Payment library for CHB bank in Taiwan. It use simply web api for CHB bank.

Install
=======

[](#install)

```
$ composer require taiwan-pay/chb-payment
```

Usage
=====

[](#usage)

- initiate the payment

```
use TaiwanPay\CHBPayment;

$payment = new CHBPayment([
    'macKey' => $macKey,
    'key' => $key,
    'merID' => $merID,
    'MerchantID' => $MerchantID,
    'TerminalID' => $TerminalID,
    'MerchantName' => $MerchantName
], false);
```

- authenticate an order

```
// get auth data and render form by yourself
$payment->auth($orderNumber, $amount, $type, $resUrl, $createTime, false);

// get auth form and render it
$payment->auth($orderNumber, $amount, $type, $resUrl, $createTime, true);
```

- search an order

```
// get search data and render form by yourself
$payment->search($orderNumber, $amount, $resUrl, false);

// get search form and render it
$payment->search($orderNumber, $amount, $resUrl, true);
```

> Note: All the response will be `POST` to `$resUrl` from bank.

License
=======

[](#license)

MIT

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity44

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

Unknown

Total

1

Last Release

2611d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

bankchbpaymenttaiwantaiwanpay

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/taiwan-pay-chb-payment/health.svg)

```
[![Health](https://phpackages.com/badges/taiwan-pay-chb-payment/health.svg)](https://phpackages.com/packages/taiwan-pay-chb-payment)
```

###  Alternatives

[omnipay/paypal

PayPal gateway for Omnipay payment processing library

3156.8M53](/packages/omnipay-paypal)[eduardokum/laravel-boleto

Biblioteca com boletos para o laravel

626351.9k2](/packages/eduardokum-laravel-boleto)[tbbc/money-bundle

This is a Symfony bundle that integrates moneyphp/money library (Fowler pattern): https://github.com/moneyphp/money.

1961.9M](/packages/tbbc-money-bundle)[2checkout/2checkout-php

2Checkout PHP Library

83740.3k2](/packages/2checkout-2checkout-php)[smhg/sepa-qr-data

Generate QR code data for SEPA payments

61717.2k5](/packages/smhg-sepa-qr-data)[omnipay/dummy

Dummy driver for the Omnipay payment processing library

271.2M33](/packages/omnipay-dummy)

PHPackages © 2026

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