PHPackages                             zzyycoder/module-wechat-pay - 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. zzyycoder/module-wechat-pay

ActiveMagento2-module[Payment Processing](/categories/payments)

zzyycoder/module-wechat-pay
===========================

Wechat Payment Gateway

1.0.0(2y ago)28MITPHP

Since Jul 17Pushed 2y ago1 watchersCompare

[ Source](https://github.com/zzyycoder/mage2-wechatpay)[ Packagist](https://packagist.org/packages/zzyycoder/module-wechat-pay)[ RSS](/packages/zzyycoder-module-wechat-pay/feed)WikiDiscussions main Synced 1mo ago

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

Magento2 微信支付网关集成
=================

[](#magento2-微信支付网关集成)

实现了微信支付native支付流程，有需要的朋友可以基于这个做二次开发。

[![checkout](https://github.com/zzyycoder/mage2-wechatpay/raw/main/1.jpg?raw=true)](https://github.com/zzyycoder/mage2-wechatpay/blob/main/1.jpg?raw=true)[![order](https://github.com/zzyycoder/mage2-wechatpay/raw/main/2.jpg?raw=true)](https://github.com/zzyycoder/mage2-wechatpay/blob/main/2.jpg?raw=true)

参考文档：

composer安装：`composer require zzyycoder/module-wechat-pay`

依赖

- [wechatpay/wechatpay](https://github.com/wechatpay-apiv3/wechatpay-php)
- [simplesoftwareio/simple-qrcode](https://github.com/SimpleSoftwareIO/simple-qrcode)

注意

1. 依据官方v2开发文档：[https://pay.weixin.qq.com/wiki/doc/api/index.html。](https://pay.weixin.qq.com/wiki/doc/api/index.html%E3%80%82)
2. 依赖的wechatpay/wechatpay是微信官方提供的sdk，有需要可以方便地切换成v3版本的api。（参看[Readme](https://github.com/wechatpay-apiv3/wechatpay-php/blob/main/README_APIv2.md)）
3. 国内微信支付商户号只允许使用CNY下单，magento2的下单默认使用base\_currency，因此需要设置base currency为CNY。

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

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

Unknown

Total

1

Last Release

1036d ago

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/zzyycoder-module-wechat-pay/health.svg)

```
[![Health](https://phpackages.com/badges/zzyycoder-module-wechat-pay/health.svg)](https://phpackages.com/packages/zzyycoder-module-wechat-pay)
```

###  Alternatives

[2checkout/2checkout-php

2Checkout PHP Library

83740.3k2](/packages/2checkout-2checkout-php)

PHPackages © 2026

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