PHPackages                             lineryz/joinpay - 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. lineryz/joinpay

ActiveLibrary[Payment Processing](/categories/payments)

lineryz/joinpay
===============

v1.0.1(4y ago)019MITPHPPHP &gt;=7.0

Since Jan 14Pushed 4y ago1 watchersCompare

[ Source](https://github.com/lineryz/joinpay)[ Packagist](https://packagist.org/packages/lineryz/joinpay)[ RSS](/packages/lineryz-joinpay/feed)WikiDiscussions main Synced 1mo ago

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

joinpay
=======

[](#joinpay)

汇聚支付类库插件

### 声明

[](#声明)

这个是个人集成的汇聚支付PHP dome请注意：

- 1.非官方提供，非官方提供，非官方提供
- 2.如有不可请参照汇聚支付官网dome进行修改
- 3.如有问题可向  发送邮件提出问题
- 4.代码仅作参考，使用请谨慎，出问题本人不负责

### 安装

[](#安装)

```
composer require lineryz/joinpay

```

### 用法

[](#用法)

参数格式以官方为准：[https://www.joinpay.com/open-platform/pages/document.html?apiName=%E8%81%9A%E5%90%88%E6%94%AF%E4%BB%98&amp;id=6](https://www.joinpay.com/open-platform/pages/document.html?apiName=%E8%81%9A%E5%90%88%E6%94%AF%E4%BB%98&id=6)

##### 汇聚支付实例化

[](#汇聚支付实例化)

```
use joinpay\JoinPayClient;
$config = [
	// 商户ID
    'app_id'            => '',
    // 商户加密密钥
    'app_secret'        => '',
    // 商户私钥
    'private_key'       => '',
    // 报备商户号
    'trade_merchantNo'  => '',
];
$joinPayClient = JoinPayClient::getInstance($config);

```

##### 订单支付

[](#订单支付)

```
$joinPayClient = $joinPayClient->driver('UniPay');// 使用驱动方式重新构造订单支付

  $joinPayClient->setVerison('1.0')// 版本号
                ->setMerchantNo('')// 商户号 === 商户ID
                ->setOrderNo('')//
                ->setAmount()
                ->setProductName()
                ->setProductDesc()
                ->setMp()
                ->setNotifyUrl()
                ->setFrpCode()
                ->setMerchantBankCode()
                ->setIsShowPic()
                ->setOpenId()
                ->setAuthCode()
                ->setAppId()
                ->setTerminalNo()
                ->setTransactionModel()
                ->setTradeMerchantNo()
                ->setBuyerId()
                ->setDisablePayModel()
                ->send();

```

##### 订单查询

[](#订单查询)

```
$joinPayClient = $joinPayClient->driver('OrderQuery');// 使用驱动方式重新构造订单查询

  $joinPayClient->setOrderNo() // 订单号
                ->send();

```

##### 退款

[](#退款)

```
$joinPayClient = $joinPayClient->driver('Refund');// 使用驱动方式重新构造退款

  $joinPayClient->setVerison('1.0')// 版本号
                ->setMerchantNo('')// 商户号 === 商户ID
                ->setOrderNo('') // 原支付订单号
                ->setRefundOrderNo() // 退款订单号
                ->setRefundAmount() // 退款金额
                ->setRefundReason() // 退款原因
                ->setNotifyUrl() // 服务器异步通知地址
                ->send();

```

##### 退款查询

[](#退款查询)

```
$joinPayClient = $joinPayClient->driver('RefundQuery');// 使用驱动方式重新构造退款查询

  $joinPayClient->setVerison('1.0')// 版本号
  				->setRefundOrderNo() // 退款订单号
                ->send();

```

### 特别鸣谢

[](#特别鸣谢)

排名不分先后，感谢这些插件的开发者： @jackven  @yijin \*\* 等，如有遗漏请联系我！

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

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

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

1583d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/13c316df9ead99ef8ace798f728ef86617efe9971b167d390115b8f0e59be747?d=identicon)[ProfessorLin](/maintainers/ProfessorLin)

---

Top Contributors

[![ProfessorLin](https://avatars.githubusercontent.com/u/17899349?v=4)](https://github.com/ProfessorLin "ProfessorLin (12 commits)")[![lineryz](https://avatars.githubusercontent.com/u/97506814?v=4)](https://github.com/lineryz "lineryz (2 commits)")

### Embed Badge

![Health badge](/badges/lineryz-joinpay/health.svg)

```
[![Health](https://phpackages.com/badges/lineryz-joinpay/health.svg)](https://phpackages.com/packages/lineryz-joinpay)
```

###  Alternatives

[chargebee/chargebee-php

ChargeBee API client implementation for PHP

768.0M9](/packages/chargebee-chargebee-php)[imdhemy/google-play-billing

Google Play Billing

491.3M5](/packages/imdhemy-google-play-billing)[bitpay/sdk

Complete version of the PHP library for the new cryptographically secure BitPay API

42337.5k4](/packages/bitpay-sdk)[buckaroo/sdk

Buckaroo payment SDK

12189.1k9](/packages/buckaroo-sdk)[contica/facturador-electronico-cr

Un facturador de código libre para integrar facturación electrónica en Costa Rica a un proyecto PHP

2128.8k](/packages/contica-facturador-electronico-cr)[karson/mpesa-php-sdk

172.2k](/packages/karson-mpesa-php-sdk)

PHPackages © 2026

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