WeChat Pay Deduction Service for Openclaw

A professional integration solution for WeChat Pay entrusted deductions, covering recurring payments, automated renewals, and pay-after-use workflows.

yinwuzhe
v1.0.0
May 11, 2026
0
473
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install test-skill-not

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install test-skill-not using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is WeChat Pay Deduction Service?

The WeChat Pay Deduction Service is a specialized skill designed for developers looking to implement seamless, automated payment experiences within the WeChat ecosystem. It provides a robust framework for handling recurring billing (automatic renewals) and flexible pay-after-use (no-password payment) business models. By leveraging this tool within Openclaw Skills, developers gain access to standardized workflows for signing contracts, requesting deductions, handling pre-deduction notifications, and managing the entire fund lifecycle from refunds to reconciliation.

This skill is engineered to support both Direct Merchant and Service Provider modes, ensuring that the integration matches the specific business entity structure. It strictly follows WeChat Pay's technical protocols, primarily utilizing the V2 XML-based interface for core deduction logic while incorporating V3 JSON standards for specific features like pre-deduction notifications, ensuring high security and data integrity.

WeChat Pay Deduction Service Use Cases

  • Implementing automatic monthly or yearly subscription renewals for digital services.
  • Enabling pay-after-use scenarios for shared economy services like bike-sharing or power bank rentals.
  • Automating utility bill payments or recurring service fees via WeChat Pay.
  • Managing complex fund flows including multi-channel signing (Official Accounts, Apps, Mini Programs, and H5).
  • Troubleshooting existing deduction integrations using standardized diagnostic manuals.

How WeChat Pay Deduction Service Works

  1. Mode Confirmation: The skill first identifies whether the user is operating in Direct Merchant or Service Provider mode to determine the correct API paths and required fields.
  2. Product Selection: Assists in deciding between Recurring Deductions or Pay-After-Use based on the specific business requirements.
  3. Contract Signing: Guides the user through the contract signing process across various platforms (App, Mini Program, H5) to establish the deduction agreement.
  4. Notification & Deduction: Manages the lifecycle of a payment, including sending pre-deduction notifications (V3) and executing the actual deduction request (V2).
  5. Post-Payment Lifecycle: Handles asynchronous callbacks for payment results, contract terminations, and provides tools for refunding or closing orders.
  6. Quality Assessment: Performs a final check against high-availability and security standards before the service goes live.

WeChat Pay Deduction Service Setup

To get started with the WeChat Pay Deduction Service in your environment, ensure you have your WeChat Pay credentials ready and follow these steps:

  1. Ensure your Openclaw Skills environment is active.
  2. Initialize the skill by specifying your merchant mode:
# Identify your integration mode
# Merchant Mode uses APIv2 Key and MD5/HMAC-SHA256
# Service Provider Mode requires sub_mch_id parameters

# Fetch the relevant interface index for your platform
openclaw-cli install wechatpay-deduction-service

WeChat Pay Deduction Service Data Schema & Taxonomy

The skill organizes its technical references and samples into a structured directory based on the actor's role and the API version:

Directory Content Type Protocol Version
/references/1-merchant Direct Merchant documentation and rules V2 (Core) / V3 (Notifications)
/references/2-partner Service Provider / Partner integration guides V2 (Core) / V3 (Notifications)
/samples Request/Response payloads in XML, JSON, and URL formats Hybrid V2/V3
/troubleshooting Error code TOP 20 and common resolution workflows N/A

WeChat Pay Deduction Service Advanced Features

  • Intelligent decision tree for selecting the optimal signing method (Mini Program, H5, or App).
  • Cross-language reference generation for non-Java/Go environments with strict safety disclaimers.
  • Automated quality radar to evaluate fund security and high availability of the payment chain.
  • Strict protocol enforcement to prevent mixing V2 and V3 security logic incorrectly.
  • Comprehensive troubleshooting manual covering signature failures and contract uniqueness conflicts.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*