PHPackages                             ckales/omnipay-heepay - 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. ckales/omnipay-heepay

ActiveLibrary[Payment Processing](/categories/payments)

ckales/omnipay-heepay
=====================

汇付宝接口

v1.3(2y ago)32[1 issues](https://github.com/Ckales/omnipay-heepay/issues)MITPHP

Since Dec 20Pushed 2y agoCompare

[ Source](https://github.com/Ckales/omnipay-heepay)[ Packagist](https://packagist.org/packages/ckales/omnipay-heepay)[ RSS](/packages/ckales-omnipay-heepay/feed)WikiDiscussions master Synced 1mo ago

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

omnipay-heepay
==============

[](#omnipay-heepay)

汇付宝使用接口

安装
==

[](#安装)

```
composer require ckales/omnipay-heepay
```

使用
==

[](#使用)

```
$gateway = Omnipay::create('Heepay');
$gateway->setPartner(config('payment.heepay.partner'));
$gateway->setKey(config('payment.heepay.KEY'));
$gateway->setDesKey(config('payment.heepay.DESKEY'));
$gateway->setNotifyurl(config('payment.heepay.notify'));

$order=[
    'orderId'   => 'B1218177936793836',         //订单id
    'orderTime' => date('YmdHis', time()),    //提交时间
    'cardNum'   => '1111111111111111',          //卡号
    'cardPwd'   => '1111111111111111',          //卡密
    'amount'    => 50,                           //重置金额
    'cardType'  => 10                          //卡类型
];

$request  = $gateway->purchase($order);
$response = $request->send();
return $response->isSuccessful();
```

异步通知回调
======

[](#异步通知回调)

```
$gateway = Omnipay::create('Heepay');
$options = ['request_params'=> $_REQUEST,];
$response = $gateway->completePurchase($options)->send();
if ($response->isSuccessful() && $response->getTransactionReference()) {
    //支付成功后获取订单id
    exit($response->getOrderId());
} else {
    //支付失败通知.
    exit('支付失败');
}
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity66

Established project with proven stability

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

Total

4

Last Release

861d ago

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/ckales-omnipay-heepay/health.svg)

```
[![Health](https://phpackages.com/badges/ckales-omnipay-heepay/health.svg)](https://phpackages.com/packages/ckales-omnipay-heepay)
```

###  Alternatives

[league/omnipay

Omnipay payment processing library

6.1k9.7M166](/packages/league-omnipay)[silverstripe/silverstripe-omnipay

SilverStripe Omnipay Payment Module

38106.0k15](/packages/silverstripe-silverstripe-omnipay)

PHPackages © 2026

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