返回顶部
p

payment_skill_demo

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

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V v1.0.3
安全检测
已通过
172
下载量
0
收藏
概述
安装方式
版本历史

payment_skill_demo

# 支付 Skill AI 原生支付解决方案,提供安全、可靠的支付功能。 ## 工具调用方式 AI 通过执行 `skill_cli.py` 脚本来调用工具: ```bash python skill_cli.py <tool_name> --param1=value1 --param2=value2 ``` **示例**: ```bash # 创建支付 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 格式的结果 ```json { "success": true, "data": { ... } } ``` ## 快速开始 ### 1. 安装依赖 ```bash # Linux/macOS ./scripts/setup.sh # Windows scripts\setup.bat ``` ### 2. 配置环境变量 **必需**: ```bash export PAYMENT_API_KEY=your_api_key export PAYMENT_API_SECRET=your_api_secret ``` ### 3. 使用示例 ```bash # 创建支付 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+ - 网络访问权限 - 环境变量配置 ## 支持 - 📧 技术支持: dev@zlclaw.com - 🐛 问题报告: https://github.com/zlclaw/payment-skill-demo/issues --- **版本**: 1.0.3 | **许可证**: MIT

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 payment-skill-demo-1776289930 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 payment-skill-demo-1776289930 技能

通过命令行安装

skillhub install payment-skill-demo-1776289930

下载 Zip 包

⬇ 下载 payment_skill_demo vv1.0.3

文件大小: 22.67 KB | 发布时间: 2026-4-17 15:42

vv1.0.3 最新 2026-4-17 15:42
- Added skill_cli.py script for unified command-line tool invocation.
- Updated documentation: usage is now based on CLI instead of direct Python API, with new examples and return formats.
- Redesigned environment variable requirements and removed support for development.env configuration.
- Expanded and updated tool parameter and return value definitions for better clarity.
- Dropped server mode support (has_server set to false).
- Cleaned up and modernized configuration files and install scripts.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部