PHPackages                             phpvcn/omnipay-express - 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. phpvcn/omnipay-express

ActiveLibrary[Payment Processing](/categories/payments)

phpvcn/omnipay-express
======================

Alipay Express gateway for Omnipay payment processing library

v0.1.2(7y ago)019MITPHP

Since Apr 24Pushed 7y agoCompare

[ Source](https://github.com/phpvcn/omnipay-alipay-express)[ Packagist](https://packagist.org/packages/phpvcn/omnipay-express)[ Docs](https://github.com/phpvcn/omnipay-alipay-express.git)[ RSS](/packages/phpvcn-omnipay-express/feed)WikiDiscussions develop Synced today

READMEChangelog (2)Dependencies (2)Versions (5)Used By (0)

Omnipay: Alipay Express
=======================

[](#omnipay-alipay-express)

- 增加支付宝关闭订单接口

[![Latest Stable Version](https://camo.githubusercontent.com/a68ef21bb497efb57b7197884de31d8aa11990145d5cdf80022cc2df4eb9dca6/68747470733a2f2f706f7365722e707567782e6f72672f77617a6964772f6f6d6e697061792d657870726573732f762f737461626c65)](https://packagist.org/packages/wazidw/omnipay-express)[![Total Downloads](https://camo.githubusercontent.com/eade40983a8ef19d76150dc31e685e15f8240650a243ee91f51e387adc42308d/68747470733a2f2f706f7365722e707567782e6f72672f77617a6964772f6f6d6e697061792d657870726573732f646f776e6c6f616473)](https://packagist.org/packages/wazidw/omnipay-express)[![Latest Unstable Version](https://camo.githubusercontent.com/4ce9cea48f105d80dd39910a5f56f96c0ef0fbcb37a47211da8bd9767397251d/68747470733a2f2f706f7365722e707567782e6f72672f77617a6964772f6f6d6e697061792d657870726573732f762f756e737461626c65)](https://packagist.org/packages/wazidw/omnipay-express)[![License](https://camo.githubusercontent.com/69c8f3326ab95c14ad6593af22e483d50828c9159f97e55c5a168056d5cfd76c/68747470733a2f2f706f7365722e707567782e6f72672f77617a6964772f6f6d6e697061792d657870726573732f6c6963656e7365)](https://packagist.org/packages/wazidw/omnipay-express)

[Omnipay](https://github.com/omnipay/omnipay) is a framework agnostic, multi-gateway payment processing library for PHP 5.3+. This package implements Alipay support for Omnipay.

> Cross-border Alipay payment please use [`lokielse/omnipay-alipay`](https://github.com/lokielse/omnipay-alipay)

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

[](#installation)

Omnipay is installed via [Composer](http://getcomposer.org/). To install, simply add it to your `composer.json` file:

```
{
    "require": {
        "wazidw/omnipay-express": "dev-develop"
    }
}
```

And run composer to update your dependencies:

```
$ curl -s http://getcomposer.org/installer | php
$ php composer.phar update

```

Basic Usage
-----------

[](#basic-usage)

The following gateways are provided by this package:

- Alipay\_AopApp (Alipay APP Gateway) 支付宝APP支付 - new
- Alipay\_AopF2F (Alipay Face To Face Gateway) 支付宝当面付 - new
- Alipay\_AopWap (Alipay WAP Gateway) 支付宝手机网站支付 - new
- Alipay\_LegacyApp (Alipay Legacy APP Gateway) 支付宝APP支付
- Alipay\_LegacyExpress (Alipay Legacy Express Gateway) 支付宝即时到账
- Alipay\_LegacyWap (Alipay Legacy WAP Gateway) 支付宝手机网站支付

基于lokielse的工作，增加了以下接口

- AlipayExpress\_LegacyCloseTrade (Alipay Express Checkout) 支付宝交易关闭接口

Usage
-----

[](#usage)

### CloseTrade

[](#closetrade)

```
$gateway = Omnipay::create('AlipayExpress_LegacyCloseTrade');
$gateway->setPartner('partner');
$gateway->setKey('key');
$gateway->setTradeNo('trade_no');//支付宝交易号
$gateway->setOutOrderNo('out_order_no');//商户网站唯 一订单号
$request = $gateway->purchase();
$response = $request->send();

// 返回数据
$response->getRedirectData();
// 返回错误
$error = $response->getError();
```

For general usage instructions, please see the main [Omnipay](https://github.com/omnipay/omnipay)repository.

Related
-------

[](#related)

- [Omnipay-Alipay](https://github.com/lokielse/omnipay-alipay)
- [Laravel-Omnipay](https://github.com/ignited/laravel-omnipay)
- [Omnipay-GlobalAlipay](https://github.com/lokielse/omnipay-global-alipay)
- [Omnipay-WechatPay](https://github.com/lokielse/omnipay-wechatpay)
- [Omnipay-UnionPay](https://github.com/lokielse/omnipay-unionpay)

Support
-------

[](#support)

If you are having general issues with Omnipay, we suggest posting on [Stack Overflow](http://stackoverflow.com/). Be sure to add the [omnipay tag](http://stackoverflow.com/questions/tagged/omnipay) so it can be easily found.

If you want to keep up to date with release anouncements, discuss ideas for the project, or ask more detailed questions, there is also a [mailing list](https://groups.google.com/forum/#!forum/omnipay) which you can subscribe to.

If you believe you have found a bug, please report it using the [GitHub issue tracker](https://github.com/lokielse/omnipay-alipay/issues), or better yet, fork the library and submit a pull request.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 84.6% 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 ~246 days

Total

3

Last Release

2813d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2d0c338b810bddc9a3e66f581135da38e627049c4d2c3a794df16d007d191d0b?d=identicon)[phpvcn](/maintainers/phpvcn)

---

Top Contributors

[![wazidw](https://avatars.githubusercontent.com/u/4579995?v=4)](https://github.com/wazidw "wazidw (11 commits)")[![phpvcn](https://avatars.githubusercontent.com/u/24240009?v=4)](https://github.com/phpvcn "phpvcn (2 commits)")

---

Tags

paymentgatewaypayomnipaypurchasealipay

### Embed Badge

![Health badge](/badges/phpvcn-omnipay-express/health.svg)

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

###  Alternatives

[lokielse/omnipay-alipay

Alipay gateway for Omnipay payment processing library

587421.0k11](/packages/lokielse-omnipay-alipay)

PHPackages © 2026

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