← Back to Skills Marketplace
binggg

Cloudbase Wechat Integration

by Booker Zhao · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
50
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install cloudbase-wechat-integration
Description
CloudBase WeChat integration guide for Mini Program WeChat Pay, Official Account JSAPI Pay, Native QR-code Pay, Official Account OAuth, openid handling, paym...
README (SKILL.md)

CloudBase WeChat Integration

This skill routes WeChat payment and official-account work through CloudBase Integration Center. It gives the agent the stable execution contract and points to official index.md docs for console details that may change.

Standalone Install Note

This skill is designed to work when distributed independently on platforms such as OpenClaw. If sibling CloudBase skills are unavailable, use the references in this skill directory plus the official index.md documentation links in each reference file.

  • CloudBase main entry: https://cnb.cool/tencent/cloud/cloudbase/cloudbase-skills/-/git/raw/main/skills/cloudbase/SKILL.md
  • Current skill raw source: https://cnb.cool/tencent/cloud/cloudbase/cloudbase-skills/-/git/raw/main/skills/cloudbase/references/cloudbase-wechat-integration/SKILL.md
  • CloudBase Integration Center overview: https://docs.cloudbase.net/integration/introduce/index.md
  • CloudBase Integration Center usage: https://docs.cloudbase.net/integration/usage/index.md
  • When cloud function deployment or log operations are needed and no sibling skill is available, use the current platform's CloudBase MCP tools or CloudBase console instead of guessing unsupported APIs.

Activation Contract

Use this first when

  • The user asks about WeChat Pay, 小程序支付, 微信支付, JSAPI 支付, 公众号支付, Native 扫码支付, 二维码支付, refund callbacks, payment callbacks, wx.requestPayment, WeixinJSBridge, openid, or Official Account OAuth in a CloudBase app.
  • The task mentions CloudBase Integration Center, 集成中心, generated payment functions, pay-common, offiaccount-common, or callback routing for WeChat payment.
  • The user needs to extend a CloudBase Integration Center generated function with order persistence, idempotency, fulfillment, or payment-status sync.

Then also read

  • Mini Program structure and preview work -> ../miniprogram-development/SKILL.md (standalone fallback: https://cnb.cool/tencent/cloud/cloudbase/cloudbase-skills/-/git/raw/main/skills/cloudbase/references/miniprogram-development/SKILL.md; if unavailable, use the current mini program platform docs and the mini-program payment reference in this skill)
  • Web frontend work -> ../web-development/SKILL.md (standalone fallback: https://cnb.cool/tencent/cloud/cloudbase/cloudbase-skills/-/git/raw/main/skills/cloudbase/references/web-development/SKILL.md; if unavailable, use the JSAPI or Native references in this skill)
  • Cloud function runtime, logs, deployment, or gateway work -> ../cloud-functions/SKILL.md (standalone fallback: https://cnb.cool/tencent/cloud/cloudbase/cloudbase-skills/-/git/raw/main/skills/cloudbase/references/cloud-functions/SKILL.md; if unavailable, use CloudBase console/MCP function tools and the generated-function guidance in this skill)

Do NOT use for

  • Generic CloudBase Web Auth or Mini Program native identity work that does not involve WeChat payment or official-account OAuth.
  • General CloudBase cloud function development unrelated to Integration Center generated functions.
  • Creating or managing Integration Center instances through guessed MCP tools, guessed Manager SDK methods, or undocumented Cloud API actions.
  • Storing merchant secrets, private keys, APIv3 keys, AppSecret values, or certificates in app source code, generated examples, README files, commits, or prompts.

Operating Rules

  1. Treat Integration Center creation as a console-first workflow unless a public Manager SDK or Cloud API contract is confirmed in official docs.
  2. Use official index.md docs for console UI steps and credential fields; do not copy stale console screenshots or invent field names.
  3. Never ask the user to paste secrets into chat. Tell them to configure merchant and official-account credentials in the CloudBase console Integration Center form.
  4. Do not assume generated function names are fixed. pay-common and offiaccount-common are examples; ask for or inspect the actual function name before writing calls.
  5. Treat frontend payment success as UI feedback only. The authoritative payment state must come from server-side query results or payment callbacks.
  6. When extending generated functions, preserve credential environment variables and generated callback verification/decryption logic. Add business logic around order checks, persistence, idempotency, and fulfillment.
  7. Before changing payment or callback code, identify the target scenario and load only the matching reference file.

Routing

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
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

Quick Workflow

  1. Classify the scenario: Mini Program Pay, JSAPI Pay, Native Pay, Official Account OAuth, generated-function extension, or troubleshooting.
  2. Load the matching reference and the official index.md docs linked there.
  3. Confirm the actual CloudBase environment ID and generated function name.
  4. Generate or modify only the required client/backend code; keep merchant credentials in Integration Center configuration.
  5. Add order-status query, callback idempotency, and amount/order validation when payment state affects business data.
  6. Verify through function logs, callback logs, and an end-to-end payment sandbox or low-value production test as appropriate.

Minimum Self-Check

  • Did I avoid guessing undocumented Integration Center management APIs?
  • Did I use the actual generated function name instead of assuming pay-common?
  • Did I keep all merchant secrets and certificates out of source code and chat?
  • Did the payment flow rely on callback/query state rather than only frontend success?
  • Did I load only the scenario reference needed for the user's task?
Usage Guidance
Install only if you are working on CloudBase WeChat Pay or Official Account OAuth. Treat it as implementation guidance for payment flows: confirm generated function names and routes, keep merchant keys and AppSecret values out of chat/source code, and test payment changes with sandbox or low-value transactions before production use.
Capability Tags
cryptofinancial-authorityrequires-walletcan-make-purchasesrequires-oauth-tokenrequires-sensitive-credentials
Capability Assessment
Purpose & Capability
The skill covers high-impact payment and OAuth workflows, but that authority is central to its stated purpose and the artifact repeatedly directs agents to validate orders, use callbacks/query results, and avoid collecting secrets.
Instruction Scope
Activation is limited to WeChat Pay, Official Account OAuth, CloudBase Integration Center generated functions, and troubleshooting; it explicitly excludes unrelated auth and undocumented Integration Center management APIs.
Install Mechanism
The package contains only markdown files, no executable scripts, declared dependencies, background workers, or automatic install-time actions; alwaysApply is false.
Credentials
Use of CloudBase console, official docs, and optional CloudBase MCP tools is proportionate to configuring and debugging CloudBase WeChat integrations.
Persistence & Privilege
The references discuss order persistence, idempotency, token storage, refunds, and fulfillment logic, but these are expected payment-system concerns and the skill does not itself persist data or request credentials.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install cloudbase-wechat-integration
  3. After installation, invoke the skill by name or use /cloudbase-wechat-integration
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
cloudbase-wechat-integration 2.20.2 introduces a comprehensive integration guide for WeChat Pay and official account flows on CloudBase: - Provides a detailed usage guide for Mini Program Pay, JSAPI Pay, Native QR-code Pay, Official Account OAuth, openid handling, payment callbacks, and extending CloudBase Integration Center generated functions. - Outlines clear activation criteria, operating rules, and scope of the skill to ensure safe usage. - Includes scenario-based routing to targeted reference files for Mini Program, web, QR pay, OAuth, and troubleshooting. - Emphasizes security best practices: never expose merchant secrets in code or chat, and always use the CloudBase Integration Center for credential management. - Supports use as a standalone guide when sibling CloudBase skills are unavailable, with links to official documentation. - Lists minimum self-checks before applying workflow changes to prevent common mistakes.
Metadata
Slug cloudbase-wechat-integration
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Cloudbase Wechat Integration?

CloudBase WeChat integration guide for Mini Program WeChat Pay, Official Account JSAPI Pay, Native QR-code Pay, Official Account OAuth, openid handling, paym... It is an AI Agent Skill for Claude Code / OpenClaw, with 50 downloads so far.

How do I install Cloudbase Wechat Integration?

Run "/install cloudbase-wechat-integration" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Cloudbase Wechat Integration free?

Yes, Cloudbase Wechat Integration is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Cloudbase Wechat Integration support?

Cloudbase Wechat Integration is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Cloudbase Wechat Integration?

It is built and maintained by Booker Zhao (@binggg); the current version is v1.0.0.

💬 Comments