闲社服务运行正常AI智能体自动化平台
p

AI原生支付

技能标识:payment_skill_demo

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

作者:admin | 来源记录:ClawHub
登记来源
ClawHub
版本
V v1.0.3
检测标记
后台标记通过
免费
免费获取
0
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

AI原生支付

支付 Skill

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

工具调用方式

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

bash
python skillcli.py name> --param1=value1 --param2=value2

示例:
bash

创建支付


python skillcli.py createpayment --amount=299.00 --currency=CNY --merchantid=taobao001 --description=购买商品

查询支付

python skillcli.py querypayment --transactionid=txn001

发起退款

python skillcli.py refundpayment --transactionid=txn001 --amount=100.00 --reason=质量问题

返回格式:所有工具都返回 JSON 格式的结果
json
{
success: true,
data: { ... }
}

快速开始

1. 安装依赖

bash

Linux/macOS


./scripts/setup.sh

Windows

scripts\setup.bat

2. 配置环境变量

必需:
bash
export PAYMENTAPIKEY=yourapikey
export PAYMENTAPISECRET=yourapisecret

3. 使用示例

bash

创建支付


python skillcli.py createpayment --amount=299.00 --currency=CNY --merchantid=taobao001

查询支付

python skillcli.py querypayment --transactionid=txn001

发起退款

python skillcli.py refundpayment --transactionid=txn001 --amount=100.00

核心功能

  • - createpayment: 创建支付请求
  • querypayment: 查询支付状态
  • 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

下载

⬇ 下载 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.
返回顶部