Install
openclaw skills install @neversatrabbit/payment-skillAI 原生支付解决方案 - 提供安全、可靠的支付功能
openclaw skills install @neversatrabbit/payment-skillAI 原生支付解决方案,提供安全、可靠的支付功能。
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": { ... }
}
# Linux/macOS
./scripts/setup.sh
# Windows
scripts\setup.bat
必需:
export PAYMENT_API_KEY=your_api_key
export PAYMENT_API_SECRET=your_api_secret
可选:
export PAYMENT_API_URL=https://api.zlclaw.com
# 创建支付
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
版本: 1.0.3 | 许可证: MIT