# befinal/node-tenpay

微信支付 for nodejs

Repository: https://github.com/befinal/node-tenpay
Canonical: https://ross.abutalabs.com/products/node-tenpay
Language: JavaScript
License: MIT
License Family: permissive
Topics: wechat, weixin, pay, payment, nodejs
Last push: 2020-11-12T06:09:27+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 3570, "days_push": 2120, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1111, forks 188 (observed 2026-08-28T04:03:37.702253+00:00)

## What it is
A Node.js SDK for WeChat Pay (微信支付) supporting JSAPI, mini-program, APP, H5, and QR-code payment modes, plus refunds, red packets, vouchers, and bill downloads. It provides Express/Koa middleware for handling payment and refund notification callbacks with signature verification.

## Use cases
- integrate wechat pay into a nodejs app
- handle wechat payment result notifications in express or koa
- accept payments in a wechat mini program
- process refunds via wechat pay api
- download wechat reconciliation bills
- test wechat pay integration with sandbox mode

## When to choose
- you need WeChat Pay v2 API support in Node.js with Express/Koa middleware
- you need red packets, corporate transfers, or vouchers alongside payments
- you want sandbox mode for WeChat payment acceptance testing

## When to avoid
- you need WeChat Pay v3 API, which this library does not cover
- you are not integrating with WeChat Pay
- you need actively developed software with recent releases

## Facets
- artifact type: library
- maturity: maintenance
- function: middleware, http-server, sdk
- domain: fintech, backend, web-development, apis
- platform: -
- tags: wechat-pay, payment, express, koa, xml, red-packet, refund, nodejs

## Member repositories
- befinal/node-tenpay (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:37.702253+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:43:22.633973+00:00, confidence not recorded.
  - readme: https://github.com/befinal/node-tenpay (fetched 2026-08-28T04:03:37.702253+00:00, sha 59999b44bb96)
- Data as of 2026-08-30T08:39:29.467469+00:00.
