PHPackages                             onekb/gdrcu - 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. onekb/gdrcu

ActiveLibrary[Payment Processing](/categories/payments)

onekb/gdrcu
===========

广东农信统一支付平台

1.0.3(4y ago)0172MITPHPPHP &gt;=7.4

Since Jul 28Pushed 4y ago1 watchersCompare

[ Source](https://github.com/onekb/gdrcu-sdk)[ Packagist](https://packagist.org/packages/onekb/gdrcu)[ RSS](/packages/onekb-gdrcu/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (4)Dependencies (6)Versions (5)Used By (0)

 gdrcu-sdk
===========

[](#-gdrcu-sdk-)

 广东农信统一支付平台SDK（非官方）

Installing
----------

[](#installing)

```
$ composer require onekb/gdrcu -vvv
```

Usage
-----

[](#usage)

1. 初始化配置Gdrcu

```
$app = \Onekb\Gdrcu\Factory::Gdrcu([
    'host' => 'https://pay.xxx.com', // 请联系你的客户经理获取正式平台地址
    'response_type' => 'array', // 返回格式
    'pubRsaKey' => $pubRsaKey, // 公钥 请联系你的客户经理获取
    'priRsaKey' => $priRsaKey, // 私钥 请联系你的客户经理获取
    'xthPubRsaKey' => $xthPubRsaKey, // 鲜特汇公钥 请联系你的客户经理获取
    'mercId' => $mercId, // 商户号 请联系你的客户经理获取
    'timeout' => 5, // Guzzle超时时间
    'connect_timeout' => 5, // Guzzle链接超时时间

]);
```

2. 使用功能

```
// 二维码下单
$a = $app->order->getQrCode([
    'outTradeNo' => substr(md5(time()), 0, 10), // 单号
    'payOrderAmount' => 0.01, // 金额
    'remark' => '测试支付' //备注
]);

// 查询订单
$a = $app->order->inspOrder([
    // 'outTradeNo' => 'xxxxxx', // 外部商户接入平台的订单号 二选一
    'payOrdNo' => 'xxxx', // 平台支付订单号 二选一
]);

// 申请退款
$a = $app->order->refund([
    'outTradeNo' => 'AAAAAAA', // 外部商户接入平台的订单号
    'origPayOrdNo' => 'BBBBBBB', // 原外部商户接入平台的订单号
    'refundAmt' => 0.01, // 退款金额
    'refundCause' => '手工退款' // 退款原因
]);

// 查询退款
$a = $app->order->qryRefund([
    'outRefundNo' => 'AAAAAAA', // 接入商户流水号
    'refundOrdNo' => 'BBBBBBB', // 平台退款订单号
]);
```

Contributing
------------

[](#contributing)

You can contribute in one of three ways:

1. File bug reports using the [issue tracker](https://github.com/onekb/gdrcu/issues).
2. Answer questions or fix bugs on the [issue tracker](https://github.com/onekb/gdrcu/issues).
3. Contribute new features or update the wiki.

*The code contribution process is not very formal. You just need to make sure that you follow the PSR-0, PSR-1, and PSR-2 coding guidelines. Any new code contributions must be accompanied by unit tests where applicable.*

License
-------

[](#license)

MIT

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

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

Total

4

Last Release

1579d ago

PHP version history (2 changes)1.0.1PHP &gt;=7.0

1.0.3PHP &gt;=7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/2dd22bce5121cc4cf36876caf143f65734f04c8dc962385887ba9df2ba518e08?d=identicon)[1kb](/maintainers/1kb)

---

Top Contributors

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

---

Tags

sdkpaygdrcugdrcu-sdk

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/onekb-gdrcu/health.svg)

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

###  Alternatives

[sebdesign/laravel-viva-payments

A Laravel package for integrating the Viva Payments gateway

4845.9k](/packages/sebdesign-laravel-viva-payments)

PHPackages © 2026

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