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

ActiveLibrary[Payment Processing](/categories/payments)

muskid/omnipay-express
======================

Alipay Express gateway for Omnipay payment processing library

111PHP

Since Sep 20Pushed 7y ago1 watchersCompare

[ Source](https://github.com/zhenyangjiang/omnipay-express)[ Packagist](https://packagist.org/packages/muskid/omnipay-express)[ RSS](/packages/muskid-omnipay-express/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)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

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity40

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.

### Community

Maintainers

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

---

Top Contributors

[![Cucumber-ops](https://avatars.githubusercontent.com/u/85218483?v=4)](https://github.com/Cucumber-ops "Cucumber-ops (2 commits)")

### Embed Badge

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

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

###  Alternatives

[omnipay/paypal

PayPal gateway for Omnipay payment processing library

3156.8M53](/packages/omnipay-paypal)[eduardokum/laravel-boleto

Biblioteca com boletos para o laravel

626351.9k2](/packages/eduardokum-laravel-boleto)[tbbc/money-bundle

This is a Symfony bundle that integrates moneyphp/money library (Fowler pattern): https://github.com/moneyphp/money.

1961.9M](/packages/tbbc-money-bundle)[2checkout/2checkout-php

2Checkout PHP Library

83740.3k2](/packages/2checkout-2checkout-php)[smhg/sepa-qr-data

Generate QR code data for SEPA payments

61717.2k5](/packages/smhg-sepa-qr-data)[omnipay/dummy

Dummy driver for the Omnipay payment processing library

271.2M33](/packages/omnipay-dummy)

PHPackages © 2026

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