
wechatpay-apiv3/wechatpay-skills
2 skills1.7k installs526 starsGitHub
Install
npx skills add https://github.com/wechatpay-apiv3/wechatpay-skillsSkills in this repo
1Wechatpay Basic PaymentWechatpay-basic-payment is a reference skill for solo builders and small teams integrating WeChat Pay APIv3 in ordinary merchant mode. It walks through the development prerequisites that block every downstream payment call: merchant ID, the correct AppID for your channel (service account, mini program, or native app), API certificates, and the APIv3 key material. Because WeChat treats AppIDs as interchangeable in format but not in purpose, the skill stresses binding the right identifier to your mchid and completing dual-side confirmation on 商户平台 and 公众平台 or 开放平台. Use it early in Build when wiring checkout for Chinese users, before you debug cryptic order errors caused by unbound or cross-subject AppIDs. It complements implementation skills for JSAPI, APP, or mini-program pay flows rather than replacing server-side signature and notify handlers.861installs2Wechatpay Product CouponWeChat Pay Product Coupon is an agent skill backed by official WeChat Pay sample Go code for creating brand product coupons—illustrated as a single-coupon, store-wide discount configuration. Solo builders selling in WeChat ecosystems use it during Build when they must wire 商品券 APIs without inventing signature logic or URL paths from scratch. The sample stresses CreateBrandConfig with brand ID, API certificate serial, private key path, platform public key ID, and pub key file, then builds a CreateProductCouponRequest with OutRequestNo, scope ALL or SINGLE, types NORMAL/DISCOUNT/EXCHANGE, and usage_mode SINGLE or SEQUENTIAL. Conditional blocks document when DiscountCoupon vs NormalCoupon blocks are required. Prism catalogs it as a parameterization template for agents: copy the official structure, fill merchant secrets locally, and avoid concatenating unofficial API shapes. It is advanced, certificate-heavy integration work suited to indie e-commerce and SaaS billing teams already on WeChat Pay brand tooling.799installs