vikingmute

现代化的微信支付 Node.js SDK - ESM、TypeScript、全支付方式支持

230
10
100% credibility
Found Feb 03, 2026 at 38 stars 6x -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
TypeScript
AI Summary

A modern JavaScript toolkit for integrating all WeChat Pay methods including QR scans, app, browser, and mini-program payments into websites and apps.

How It Works

1
🔍 Find the payment helper

While looking for an easy way to accept WeChat payments in your online shop, you discover Better WeChatPay.

2
📦 Try the demo shop

You grab the ready-made example shop to test everything on your own computer without building from scratch.

3
🏪 Connect your WeChat shop

You enter details from your WeChat merchant account so the tool knows how to handle your payments securely.

4
💳 Make a payment link or code

With a few details like order amount and description, you create a QR code or link ready for customers to use.

5
Choose customer payment style
📷
QR code scan

Customer scans a code with their phone for quick payment.

📲
App payment

Customer pays directly from a mobile app.

🌐
Browser payment

Customer pays right in their web browser.

🐣
Mini-program

Customer pays inside a WeChat mini-app.

6
Customer pays smoothly

Your customer taps or scans, completes the payment in seconds, and you get instant updates.

🎉 Payments working perfectly

Money flows into your account reliably, your shop is ready for real customers, and business grows effortlessly.

Sign up to see the full architecture

5 more

Sign Up Free

Star Growth

See how this repo grew from 38 to 230 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is better-wechatpay?

Better-wechatpay is a Node.js SDK for integrating WeChat Pay into your apps, handling everything from Native scan payments and JSAPI to APP, H5, and combined orders. It simplifies creating payments, querying orders, processing refunds, and verifying webhooks with automatic amount conversion from yuan to fen, built-in signing, and certificate management. Developers get a TypeScript-ready, ESM-only library that works out of the box with env vars for keys and a low-dependency setup using ofetch.

Why is it gaining traction?

Unlike older WeChat Pay wrappers, it covers all V3 API payment methods including combined payments, with full TypeScript types, debug logging, and response verification using platform certs. The hook is the ready-to-run demo server for testing full flows via QR codes and webhooks, plus plug-and-play examples for Next.js and Nuxt—similar to streamlined node js sdk like appwrite node js sdk or paypal node js sdk. Solid test coverage and online docs make prototyping fast without digging into WeChat's raw APIs.

Who should use this?

Node.js backend devs building e-commerce sites or SaaS for Chinese markets needing WeChat Pay, especially those handling multiple payment types like scan-to-pay or mini-programs. Teams on Next.js or Nuxt wanting quick payment endpoints without boilerplate signing and cert hassle. Avoid if you're not already on node js github projects with TypeScript.

Verdict

Grab it for modern WeChat Pay in Node.js—excellent docs, examples, and coverage beat most alternatives despite only 218 stars and 1.0% credibility score signaling early maturity. Production-ready for prototypes; monitor releases for stability.

(198 words)

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.