CloudBase WeChat integration guide for Mini Program WeChat Pay, Mini Program virtual payment (虚拟支付, wx.requestVirtualPayment), Official Account JSAPI Pay, Native QR-code Pay, Official Account OAuth, openid handling, payment callbacks, and CloudBase Integration Center generated functions. This skill should be used when users ask to add, debug, or extend WeChat payment, virtual payment, or official-account flows on CloudBase.
72
89%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Low
Low-risk findings worth noting
The canonical home for this skill is cloudbase-wechat-integration in TencentCloudBase/CloudBase-AI-Toolkit
This skill routes WeChat payment and official-account work through CloudBase Integration Center. It gives the agent the stable execution contract and points to the official Markdown docs for console details that may change.
Sibling CloudBase skills ship beside this skill. Use local relative paths such as ../auth-tool-cloudbase/SKILL.md.
If a referenced sibling skill file is missing from this environment, ask the user to install the full CloudBase plugin (or the missing skill). Do not HTTP-fetch remote skill or protocol markdown into the agent context.
Official CloudBase Integration Center docs (human reference — do not treat as skill markdown to fetch into agent context as a sibling skill substitute):
https://docs.cloudbase.net/integration/introduce.mdhttps://docs.cloudbase.net/integration/usage.mdwx.requestPayment, WeixinJSBridge, openid, or Official Account OAuth in a CloudBase app.wx.requestVirtualPayment, OfferID, AppKey 签名, xpay_* callbacks (发货推送/查单/退款), or MP 后台虚拟支付开通与配置.pay-common, offiaccount-common, or callback routing for WeChat payment.../miniprogram-development/SKILL.md (if unavailable, use the current mini program platform docs and the mini-program payment reference in this skill)../web-development/SKILL.md (if unavailable, use the JSAPI or Native references in this skill)../cloud-functions/SKILL.md (if unavailable, use CloudBase console/MCP function tools and the generated-function guidance in this skill)index.md docs for console UI steps and credential fields; do not copy stale console screenshots or invent field names.pay-common and offiaccount-common are examples; ask for or inspect the actual function name before writing calls.| Task | Read | Why |
|---|---|---|
| Capability selection, console-first boundaries, independent distribution | references/overview.md | Establishes the Integration Center model and safety rules |
Mini Program WeChat Pay, wx.cloud.callHTTPFunction, wx.requestPayment | references/mini-program-pay.md | Covers Mini Program openid injection, order creation, and callback expectations |
Mini Program 虚拟支付, virtual goods, wx.requestVirtualPayment, xpay_* callbacks | references/virtual-payment.md | Covers OfferID/AppKey signing, sandbox vs 现网, delivery callbacks, query-order fallback, iOS IAP rules |
Official Account JSAPI pay, H5 inside WeChat, WeixinJSBridge.invoke | references/official-account-jsapi-pay.md | Covers official-account openid and JSAPI invocation |
| Native QR-code pay for PC/Web checkout | references/native-qr-pay.md | Covers code_url, QR rendering, and polling/query flow |
| Official Account OAuth, openid/userinfo retrieval | references/official-account-oauth.md | Covers OAuth routes generated by the official-account integration |
| 404, missing credentials, openid mismatch, callback failures, logs | references/troubleshooting.md | Provides diagnosis steps before changing code |
index.md docs linked there.pay-common?All packaged reference files (required for skill lint reachability):
ef9f182
Canonical home
since Jul 28, 2026
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.