Skip to content

WeChat Pay

A focused TypeScript workspace for App, H5, JSAPI, and Native QR one-time payments.

Safe runtime boundaries

Merchant keys never enter a client package. Order creation, signatures, webhook verification, and fulfilment remain on your trusted backend.

Packages

PackageResponsibility
@chinafast/core-wechat-payShared contracts, channel policy, errors, and backend HTTP client
@chinafast/web-wechat-payH5 redirects, Official Account JSAPI, desktop Native QR, and React
@chinafast/expo-wechat-payNative WeChat App Pay, Expo config plugin, and React
@chinafast/server-wechat-payAPI v3 signing, orders, queries, close, refunds, and verified webhooks

Supported channels

RuntimeChannel
WeChat browserJSAPI
Other mobile browserH5
Desktop browserNative QR
Expo development or production buildApp Pay

Start with the installation and flow guide, then select Web or Expo.

Released under the MIT License.