payment_skill_demo

AI 原生支付解决方案 - 提供安全、可靠的支付功能

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "payment_skill_demo" with this command: npx skills add neversatrabbit/payment-skill-demo

支付 Skill

AI 原生支付解决方案,提供安全、可靠的支付功能。

工具调用方式

AI 通过执行 skill_cli.py 脚本来调用工具:

python skill_cli.py <tool_name> --param1=value1 --param2=value2

示例

# 创建支付
python skill_cli.py create_payment --amount=299.00 --currency=CNY --merchant_id=taobao_001 --description="购买商品"

# 查询支付
python skill_cli.py query_payment --transaction_id=txn_001

# 发起退款
python skill_cli.py refund_payment --transaction_id=txn_001 --amount=100.00 --reason="质量问题"

返回格式:所有工具都返回 JSON 格式的结果

{
  "success": true,
  "data": { ... }
}

快速开始

1. 安装依赖

# Linux/macOS
./scripts/setup.sh

# Windows
scripts\setup.bat

2. 配置环境变量

必需

export PAYMENT_API_KEY=your_api_key
export PAYMENT_API_SECRET=your_api_secret

3. 使用示例

# 创建支付
python skill_cli.py create_payment --amount=299.00 --currency=CNY --merchant_id=taobao_001

# 查询支付
python skill_cli.py query_payment --transaction_id=txn_001

# 发起退款
python skill_cli.py refund_payment --transaction_id=txn_001 --amount=100.00

核心功能

  • create_payment: 创建支付请求
  • query_payment: 查询支付状态
  • refund_payment: 发起退款

安全特性

  • TLS 加密通信
  • HMAC-SHA256 签名
  • 参数验证
  • 审计日志

技术要求

  • Python 3.6+
  • 网络访问权限
  • 环境变量配置

支持


版本: 1.0.3 | 许可证: MIT

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

Finance Automation

Automates payments, invoices, expenses, and financial reports with Stripe webhooks and real-time Telegram notifications for streamlined finance management.

Registry SourceRecently Updated
1.3K0Profile unavailable
General

Ecommerce Livestream Overlay Generator

Fully automated e-commerce livestream overlay generation. Given a brand, product, and promotional info (or a product photo directly), automatically generates...

Registry SourceRecently Updated
General

uwillberich

Build next-session A-share game plans from market structure, overnight macro shocks, policy timing, and watchlist leadership. Use when the user asks what A-s...

Registry SourceRecently Updated
2330Profile unavailable
General

港股美股分析

智能股票分析系统 v2.1 - 港股/美股/A股实时行情 + 富途数据源 + 技术指标 + 综合报告(7大板块)

Registry SourceRecently Updated
4581Profile unavailable