Preface¶
When integrating Huifu (Dougong) Payment, the common difficulties lie not in “how to call HTTP,” but in aligning fields with the official DTO, signature generation and verification, asynchronous notifications and payment terminal states, idempotency and order query compensation, as well as sandbox integration and post-launch channel troubleshooting. Documentation is often scattered across SDKs and interface specifications, and asking general large language models often leads to missing channel differences or fabricated error codes.
Below is an introduction to the Huifu Payment Integration (@user_93f1fdbc/huifu-pay-integration, v1.4.0) on SkillHub. It is published by Shanghai Huifu Payment Co., Ltd. from an enterprise source, categorized under dev-programming, and tagged with requires_api_key=false. It is designed to assist with transaction integration and troubleshooting within Agent conversations according to official capability boundaries, rather than replacing merchant keys or production configurations.
What is this¶
Huifu Payment Integration is geared towards transaction integration and development troubleshooting for Huifu Payment / Dougong Payment: Aggregated Payment, Escrow Payment, Balance Payment, checkout-js and cashier counters on various ends, as well as Java / PHP / Python official SDKs, complete fields and DTOs, signature verification, async notifications and Webhooks, idempotency, payment terminal states, order query compensation, local sandboxing, and launch troubleshooting.
Merchant onboarding, account opening, data maintenance, rate negotiation, or business activation are not within the scope of this Skill; please use huifu-merchant-onboarding instead. If a single task requires both account opening and payment integration, both Skills must be enabled simultaneously so that end-to-end requests align with the official division of labor.
Core Features¶
The following capabilities are derived from the SkillHub page summary, categorized by the integration workflow.
Payment Products & Cashier¶
- Aggregated Payment, Escrow Payment, Balance Payment
checkout-jsand cashier counters for various platforms
Channels & Transaction Types¶
- Channels: WeChat, Alipay, UnionPay, Douyin (TikTok), etc.
- Transactions: Pre-order / Order, Query, Close, Refund, Combined Payment, Split Payment / Profit Sharing Query, Reconciliation
Balance & Auxiliary Interfaces¶
- Balance fee trial calculation
- Payment relationship submission
- SMS verification codes
Engineering & Stability¶
- Java / PHP / Python official SDKs, complete fields / DTOs
- Signature generation and verification
- Asynchronous notifications / Webhooks
- Idempotency, payment terminal states, order query compensation
- Local sandbox and launch troubleshooting
Installation & Activation¶
The installation method provided on the official SkillHub page involves letting the AI handle the coordinate package installation via a unified installation document, rather than manually writing business code.
Method 1: Prompt Installation (Page Recommended)¶
Send the following prompt to the AI Agent you are currently using:
Please install `@user_93f1fdbc/huifu-pay-integration` according to https://skillhub.cn/install/skillhub.md.
Method 2: SkillHub CLI¶
First, confirm if skillhub is available on your local machine:
command -v skillhub && skillhub --version
If not installed, follow the SkillHub installation documentation to perform a complete installation (CLI + Default Skills):
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
When installing the Skill, you must use --dir to point to the current Agent’s skills directory; installing to the default ./skills/ might not be recognized. Common paths are listed below (subject to installation documentation):
| Agent | skills Directory |
|---|---|
| Cursor | ~/.cursor/skills/ |
| Claude Code | ~/.claude/skills/ |
| Codex | ~/.codex/skills/ or .agents/skills/ under project |
Example for installing this Skill:
skillhub install @user_93f1fdbc/huifu-pay-integration --dir ~/.cursor/skills/
Simply replace ~/.cursor/skills/ with the corresponding directory for your current environment. The same applies to Codex, Claude Code, etc., with only the path differing.
Typical Usage¶
This Skill is based on the generic SKILL.md format, and the page does not include an independent business code repository; typical usage involves describing the scenario in natural language after installation, allowing the Agent to generate or proofread implementations based on Huifu’s official SDK and interface constraints.
- Pre-order / Order: Specify the channel (e.g., WeChat, Alipay), cashier form (Aggregated, Escrow, or Cashier), amount, and merchant order number. Request to construct the request according to DTO fields and signature rules.
- Async Notification: Describe the Webhook or async notification processing logic draft. Request signature verification, idempotent order updates, differentiation of payment terminal states, and explanation of handling for duplicate callbacks.
- Query & Compensation: When the payment result is unclear, request to use the order query interface to align with local order status, and provide order query compensation steps if necessary.
- Refund / Combined / Split: Explain the original transaction info and split rules. Request coverage of close, refund, split payment / profit sharing queries, and reconciliation-related interfaces.
- Integration & Launch: Distinguish between sandbox and production configurations. List the troubleshooting sequence for signature, key, and channel issues (without outputting real keys).
If the conversation involves account opening, onboarding, or business activation, explicitly switch to huifu-merchant-onboarding or use it in conjunction with this Skill.
Scenarios & Notes¶
Who is it for
- Backend or Full-stack developers currently integrating Dougong / Huifu Payment
- Teams needing a unified reference for Java / PHP / Python SDKs, DTOs, and signature verification
- Maintenance personnel handling async notifications, idempotency, terminal states, and order query compensation
Limitations & Notes
requires_api_key=falseindicates that the Skill metadata does not strictly bind an API Key; production merchant IDs, keys, and certificates must still be configured by you in a secure environment. Do not write them into conversations or repository plaintext.- Onboarding and payment capabilities are split into two Skills; do not expect a single Skill to cover the entire chain from account opening to payment receipt.
- Page statistics (as of data retrieval): Rating 100000, Downloads 8377; subject to the real-time SkillHub page.
- Version is subject to SkillHub; currently v1.4.0.
Conclusion¶
Huifu Payment Integration consolidates Dougong transaction integration, SDK/DTO, signature verification, async notifications, and troubleshooting knowledge into an Agent-executable Skill, while clearly demarcating responsibilities from huifu-merchant-onboarding. To install or view instructions, please visit the official addresses:
- API Page: https://api.skillhub.cn/user_93f1fdbc/huifu-pay-integration
- SkillHub Page: https://www.skillhub.cn/skills/user_93f1fdbc/huifu-pay-integration