PHPackages                             gopayplus/gopay-php-sdk - 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. gopayplus/gopay-php-sdk

ActiveLibrary[Payment Processing](/categories/payments)

gopayplus/gopay-php-sdk
=======================

A Gopay SDK for PHP.

1.0.2(1y ago)022MITPHP

Since Nov 7Pushed 1y ago1 watchersCompare

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

READMEChangelog (3)Dependencies (2)Versions (4)Used By (0)

趣付宝（Gopay）支付平台快速接入 PHP-SDK
==========================

[](#趣付宝gopay支付平台快速接入-php-sdk)

### 安装

[](#安装)

```
composer require gopayplus/gopay-php-sdk
```

快速使用
----

[](#快速使用)

### 转账-创建订单

[](#转账-创建订单)

```
$Config = new Config($this->host,  $this->mch_id, $this->app_id, $this->secret);
$Transfer = new Transfer($Config);
$order_no = "T010030330202";
$account_name = "李白";
$account_no = "6224121229828888";
$bank_name = "湖北农信";
$bank_code = "PSBC";
$province = "湖北省";
$city = "荆州市";
$amount = 100; //分
$entry_code = EntryType::BANK_CARD.value; // $entry_code = 入账方式： WX_CASH-微信零钱; ALIPAY_CASH-支付宝转账; BANK_CARD-银行卡
$if_code = IfCode::ALIAQFPAY.value; // 安全发
$ip = "";
$remark = "";
$notify_url = "";
$data = $Transfer->transferOrder($if_code, $entry_code,$order_no, $amount, $account_no, $account_name, $bank_name, $ip, $remark, $notify_url);
```

### 转账-订单查询

[](#转账-订单查询)

```
$Config = new Config("host", "merchant_id",  "app_id", "secret");
$Transfer = new Transfer($Config);
$Transfer->query("transfer_id", "out_order_no");
```

### 转账-额度查询

[](#转账-额度查询)

```
$Config = new Config($this->host,  $this->mch_id, $this->app_id, $this->secret);
$Transfer = new Transfer($Config);
$Transfer->balance("aliaqfpay");
```

### 转账-查询回单

[](#转账-查询回单)

```
$Config = new Config($this->host,  $this->mch_id, $this->app_id, $this->secret);
$Transfer = new Transfer($Config);
$Transfer->receipt("transfer_id", "out_order_no");
```

注：为了提高开发者问题的响应时效，请联系我们官方支付渠道。

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance40

Moderate activity, may be stable

Popularity6

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

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

Total

3

Last Release

500d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/51c68d002c86a4ce33b161f319cb6e65853c13ec8539354bda43f93fcb119ec5?d=identicon)[gopayplus](/maintainers/gopayplus)

### Embed Badge

![Health badge](/badges/gopayplus-gopay-php-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/gopayplus-gopay-php-sdk/health.svg)](https://phpackages.com/packages/gopayplus-gopay-php-sdk)
```

###  Alternatives

[lemonsqueezy/laravel

A package to easily integrate your Laravel application with Lemon Squeezy.

58596.1k](/packages/lemonsqueezy-laravel)[shetabit/multipay

PHP Payment Gateway Integration Package

291348.2k3](/packages/shetabit-multipay)[imdhemy/google-play-billing

Google Play Billing

491.3M5](/packages/imdhemy-google-play-billing)[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)

PHPackages © 2026

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