WeChat Pay Integration Skill: Unified Handling of Integration and Troubleshooting in the Agent

Introduction

When integrating WeChat Pay, documentation is scattered across multiple product pages, and the rules for JSAPI, Native, Service Provider mode, APIv2, and APIv3 are not entirely consistent. Issues around signing, certificates, callback verification, order queries, and error codes often only surface collectively during the integration testing phase. Asking general models directly within agents like Cursor tends to yield outdated APIs or responses lacking official context.

The following introduces the “WeChat Pay Integration Skill” on SkillHub: published by the WeChat Pay team as a unified entry point for WeChat Pay-related questions, consolidating product selection, sample code guidance, integration quality assessment, and troubleshooting into a single set of Skill trigger rules.

What Is This

The “WeChat Pay Integration Skill” is a Skill designed for large language model agents, with the identifier @tencent-adm/wechatpay-payment-integration, current version 1.0.15, source enterprise, category dev-programming, and published by the WeChat Pay Team.

The Skill’s positioning is to handle inquiries related to WeChat Pay integration, products, development, and operations; provide product selection guidance, official sample code, integration quality assessment, Q&A, and troubleshooting. The page notes requires_api_key=false, meaning installation and usage do not depend on additional API Key configuration.

Core Features

The following capabilities are sourced from SkillHub and the official introduction. Details not individually listed should refer to the SKILL.md within the Skill package.

  1. Product and Integration Inquiries
    Covers integration workflows, product capabilities, and common questions on the development and operations sides.

  2. Product Selection
    Triggered when users need recommendations on payment methods or product selection, such as JSAPI, APP payment, H5 payment, Native payment, scan-code payment, payment codes, mini program payment, and similar scenarios.

  3. Official Samples and API Documentation
    Answers in the context of WeChat Pay official documentation when users request APIs, sample code, or explanations of field meanings and API rules.

  4. Integration Quality Assessment
    Supports pre-launch checks and integration code quality review requests.

  5. Q&A and Troubleshooting
    Helps troubleshoot issues related to callbacks, signatures, certificates, error codes, OpenID, as well as errors, order queries, and payment anomalies.

Trigger words listed in the Skill description also include: combined order payment, medical insurance payment, WeChat Pay Score, profit sharing, transfers, entrusted deductions, recurring payments, vouchers, merchant coupons, special merchant onboarding, service providers, sub_mchid, APIv2, APIv3, and others.

Installation and Activation

Installation follows the instructions on the SkillHub page: refer to SkillHub Installation and Priority Source Configuration and install the identifier @tencent-adm/wechatpay-payment-integration.

1. Install the SkillHub CLI (if not already installed)

First, check whether the CLI is already available:

command -v skillhub && skillhub --version

If not installed, run the full installation (CLI + default Skills):

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

If only the CLI is needed:

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only

2. Install This Skill to the Current Agent’s Skills Directory

When installing, you must use --dir to point to the skills directory recognized by your current Agent; otherwise, the default install path ./skills/ may not be loaded.

skillhub install @tencent-adm/wechatpay-payment-integration --dir <skills directory>

Common path examples (from the SkillHub installation documentation):

  • Cursor: ~/.cursor/skills/
  • Claude Code: ~/.claude/skills/
  • Codex: ~/.codex/skills/ or .agents/skills/ under the project

In Cursor, you can write it as:

skillhub install @tencent-adm/wechatpay-payment-integration --dir ~/.cursor/skills/

After installation, restart or refresh the Agent as required by your client so the Skill takes effect.

Typical Usage

The Skill automatically matches via natural language and keywords, requiring no separate subcommands. Simply describe your scenario in the conversation, for example:

  1. Selection
    “We have an H5 mall inside a Official Account. Should we use JSAPI or mini program payment? How should sub_mchid be understood in service provider mode?”

  2. Development and Samples
    “What fields are needed for APIv3 unified order? Give me an idea of the official sample code.”

  3. Pre-Launch Checks
    “Help me do an integration code quality review, focusing on callback signature verification and certificates.”

  4. Troubleshooting
    “Payment callback signature verification failed” / “Order query status is inconsistent” / “What does this error code mean?”

When messages contain “WeChat Pay,” “WeChat Collection,” “WeChat Pay,” or the product and protocol terms listed above, the Agent should prioritize following this Skill’s guidance rather than performing generic searches.

Use Cases and Notes

Who It’s For

  • Backend, full-stack, and mini program developers who are integrating or maintaining WeChat Pay.
  • Teams that need extended capabilities such as service providers, special merchant onboarding, profit sharing, and entrusted deductions, and want answers consistent with official documentation.
  • Developers working in Agent environments that support SkillHub installation, such as Cursor, Claude Code, and Codex.

Usage Notes

  • The Skill provides consultation, selection guidance, sample pointers, and quality check frameworks. It does not replace merchant platform configuration, real keys, or certificate files; production environments must still complete activation and permissions on the WeChat Pay merchant platform.
  • API versions (APIv2 / APIv3), certificates, and signature algorithms are subject to the capabilities currently enabled for your merchant account; integration testing results are subject to WeChat Pay’s responses.
  • SkillHub page statistics (as of data retrieval): rating 100000, downloads 2395; specific numbers will change with platform updates.

Conclusion

If you want your Agent to handle WeChat Pay-related questions uniformly in an official context—from selection and samples to pre-launch checks and troubleshooting—you can first install @tencent-adm/wechatpay-payment-integration, then ask questions in business language within your conversations.

  • SkillHub Page: https://www.skillhub.cn/skills/tencent-adm/wechatpay-payment-integration
  • Official Address: https://api.skillhub.cn/tencent-adm/wechatpay-payment-integration
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye