PHPackages                             unisharp/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. unisharp/payment

ActiveLibrary[Payment Processing](/categories/payments)

unisharp/payment
================

more payment for taiwan pay

31.5kPHP

Since Aug 8Pushed 7y ago9 watchersCompare

[ Source](https://github.com/UniSharp/unisharp-payment)[ Packagist](https://packagist.org/packages/unisharp/payment)[ RSS](/packages/unisharp-payment/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

UniSharp Payment
================

[](#unisharp-payment)

Provide Cathay, TaiwanPay and more ways to pay

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

[](#installation)

`composer require unisharp/payment dev-master`

Available Gateway
-----------------

[](#available-gateway)

- [智付通 Spgateway](https://www.spgateway.com/)
- [綠界 ECPay](https://www.ecpay.com.tw/)
- [國泰世華 Cathay](https://www.cathaybk.com.tw/cathaybk/corp/cash/intro/receivable/#first-tab-04)

Usages
------

[](#usages)

Initial the gateway

```
$cathay = UniSharp\Payment\Gateways\CathayGateway::create([
    'hashKey'       => 'c7fe1bfba42369ec1add502c9917e14d',
    'hashIV'        => '',
    'merchantId'    => '123456789',
    'version'       => '',
    'actionUrl'     => 'https://sslpayment.uwccb.com.tw/EPOSService/Payment/OrderInitial.aspx',
    'returnUrl'     => 'https://localhost/payment/confirm',
    'notifyUrl'     => 'https://localhost/payment/notify',
    'clientBackUrl' => 'https://localhost/payment/return',
    'paymentInfoUrl'=> 'https://localhost/payment/information',
]);
```

Generate post form

```
$cathay->newOrder(
    $order->sn,
    $order->total_price,
    $order->name,
    $order->note
);

return $cathay->genForm(true);
```

Process order result/information

```
$cathay = UniSharp\Payment\Responses\CathayResponse::create([
    'hashKey'       => 'c7fe1bfba42369ec1add502c9917e14d',
    'hashIV'        => ''
]);
```

Check the payment response

```
// Check resonse content
$result = $cathay->processOrder('xml');

// Check response success
$cathay->rspOk();
```

More details on (voicetube/taiwan-payment-gateway)\[\]

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% 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.

### Community

Maintainers

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

---

Top Contributors

[![CatheCat](https://avatars.githubusercontent.com/u/14325344?v=4)](https://github.com/CatheCat "CatheCat (2 commits)")[![youchenlee](https://avatars.githubusercontent.com/u/181350?v=4)](https://github.com/youchenlee "youchenlee (1 commits)")

### Embed Badge

![Health badge](/badges/unisharp-payment/health.svg)

```
[![Health](https://phpackages.com/badges/unisharp-payment/health.svg)](https://phpackages.com/packages/unisharp-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)
