hai-payment

Integrate WeChat, Alipay, and Stripe payments under a single interface.

3|7|Updated Jan 28, 2026
One-click install
npx skills add https://github.com/hai-series/hai-framework --skill hai-payment
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hai-payment
Source: https://github.com/hai-series/hai-framework/tree/main/packages/cli/templates/skills/hai-payment
Command: npx skills add https://github.com/hai-series/hai-framework --skill hai-payment

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This solution unifies payments from multiple providers (WeChat, Alipay, Stripe) under a single interface, simplifying integration, reconciliation, and maintenance across platforms.

Core Features & Use Cases

  • Unified provider abstraction: create orders, handle notifications, query status, issue refunds, and close orders across providers.
  • Server-side and client-side flows: manages order lifecycle on the server and provides client-side invocation params for payments.
  • Cross-provider support: works with WeChat Pay, Alipay, and Stripe to cover common payment scenarios.
  • Optional auditing: logs important payment actions for compliance and observability.
  • Real-world use: quickly onboard new payment methods without changing business logic.

Quick Start

Configure the providers, initialize the payment module, and start creating orders to begin processing payments.

Frequently Asked Questions about hai-payment

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I integrate WeChat, Alipay, and Stripe payments under a single interface?

You can integrate WeChat, Alipay, and Stripe payments under a single interface by using a unified provider abstraction to manage order creation, notifications, queries, and refunds across providers without changing business logic.

How do I handle webhook notifications and refunds across multiple payment providers?

Handle webhook notifications and refunds across multiple payment providers through a unified interface that manages the order lifecycle, enforces validation, performs safety checks, and optionally logs actions for audit compliance.

Does this unified payment tooling support both server-side order management and client-side payment invocation?

Yes, this unified payment tooling supports server-side order management and client-side payment invocation by generating client-side parameters needed to invoke payments in diverse environments after server-side initialization.

What is the best way to manage cross-provider payment reconciliation without altering existing business logic?

The best way to manage cross-provider payment reconciliation is using a unified payment abstraction layer that standardizes order creation, status queries, and settlements across WeChat, Alipay, and Stripe.

Can I quickly onboard new payment methods without changing my core payment processing logic?

Yes, you can quickly onboard new payment methods without changing core business logic by leveraging the unified provider abstraction to initialize new payment channels and handle their specific client-side flows.

How does this payment integration ensure secure transactions and compliance across different providers?

Secure transactions and compliance are ensured through provider configuration enforcement, strict validation, error handling, safety checks during order processing, and optional audit logging of important payment actions.