Payment Gateway Toolkit

v1.0.0

支付网关工具包 - 集成Stripe、支付宝等多渠道支付处理,支持订单创建、退款、查询等功能 | Payment Gateway Toolkit - Multi-channel payment processing with Stripe, Alipay integration

0· 143·0 current·0 all-time
byLv Lancer@kaiyuelv

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for kaiyuelv/payment-gateway-toolkit.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "Payment Gateway Toolkit" (kaiyuelv/payment-gateway-toolkit) from ClawHub.
Skill page: https://clawhub.ai/kaiyuelv/payment-gateway-toolkit
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install payment-gateway-toolkit

ClawHub CLI

Package manager switcher

npx clawhub@latest install payment-gateway-toolkit
Security Scan
Capability signals
CryptoRequires walletCan make purchasesRequires sensitive credentials
These labels describe what authority the skill may exercise. They are separate from suspicious or malicious moderation verdicts.
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
Name/description match the included code: scripts/payment_handler.py implements Stripe and Alipay order creation, refunds, queries, webhook verification and order history. Required dependencies (stripe, alipay-sdk-python, requests) align with the functionality.
Instruction Scope
SKILL.md and examples show only constructing the PaymentHandler with API credentials and calling payment-related methods. Instructions do not direct reading of unrelated files, system config, or broad data collection; network use is limited to payment provider APIs via the SDKs.
Install Mechanism
This is instruction-only (no install spec). A requirements.txt is included and lists standard packages from PyPI; there are no downloads from arbitrary URLs. Users will need to install dependencies (pip) themselves — the skill does not auto-install anything.
Credentials
The skill declares no required environment variables, and the code expects API keys and Alipay private/public key strings to be provided when creating PaymentHandler. This is proportionate, but callers must supply sensitive credentials (Stripe secret keys, Alipay private key). The skill itself does not request unrelated secrets.
Persistence & Privilege
Flags show always:false and normal invocation. The skill does not request persistent/privileged system presence and does not modify other skills or system-wide config.
Assessment
This repository appears coherent for payment integration, but before using it in production: 1) Only provide API keys/private keys at runtime or via your secure vault — do not paste production private keys into examples or logs. 2) Start with sandbox/test keys for Stripe/Alipay and enable debug/sandbox modes while testing. 3) Install dependencies from PyPI (pip install -r requirements.txt) and run the included tests locally to confirm behavior. 4) Review how Alipay private_key strings are stored/loaded in your deployment (avoid embedding them in source). 5) Confirm the package origin (verify the GitHub repo and author) and pin dependency versions in your environment to avoid supply-chain surprises. Overall the skill is internally consistent, but treat payment credentials as highly sensitive.

Like a lobster shell, security has layers — review code before you run it.

latestvk972q4p0spaz44rbeyry8s71g9850jm1
143downloads
0stars
1versions
Updated 1w ago
v1.0.0
MIT-0

支付网关工具包

集成多渠道支付网关的工具包,支持 Stripe、支付宝等主流支付方式。

概述

本Skill提供完整的支付处理能力:

  • Stripe 信用卡/借记卡支付
  • 支付宝网页支付/扫码支付
  • 订单创建与管理
  • 退款处理
  • 支付状态查询
  • 异步回调处理
  • 订单历史记录

依赖

  • Python >= 3.8
  • stripe >= 7.0.0
  • alipay-sdk-python >= 3.3.0
  • requests >= 2.28.0

文件结构

payment-gateway-toolkit/
├── SKILL.md                  # 本文件
├── README.md                 # 使用文档
├── requirements.txt          # 依赖声明
├── scripts/
│   └── payment_handler.py    # 核心支付处理脚本
├── examples/
│   └── basic_usage.py        # 使用示例
└── tests/
    └── test_payment.py       # 单元测试

快速开始

from scripts.payment_handler import PaymentHandler

# 初始化支付处理器
handler = PaymentHandler(
    stripe_key="sk_test_...",
    alipay_config={
        "app_id": "your_app_id",
        "private_key": "your_private_key",
        "alipay_public_key": "alipay_public_key"
    }
)

# 创建 Stripe 支付
order = handler.create_stripe_order(
    amount=99.99,
    currency="usd",
    description="Test Order"
)

# 创建支付宝订单
alipay_order = handler.create_alipay_order(
    amount=100.00,
    subject="商品购买",
    out_trade_no="ORDER123456"
)

许可证

MIT


Payment Gateway Toolkit

Multi-channel payment gateway toolkit supporting Stripe, Alipay and other mainstream payment methods.

Overview

This Skill provides complete payment processing capabilities:

  • Stripe credit/debit card payments
  • Alipay web/scan code payments
  • Order creation and management
  • Refund processing
  • Payment status queries
  • Async webhook handling
  • Order history tracking

Dependencies

  • Python >= 3.8
  • stripe >= 7.0.0
  • alipay-sdk-python >= 3.3.0
  • requests >= 2.28.0

File Structure

payment-gateway-toolkit/
├── SKILL.md                  # This file
├── README.md                 # Usage documentation
├── requirements.txt          # Dependencies
├── scripts/
│   └── payment_handler.py    # Core payment handler script
├── examples/
│   └── basic_usage.py        # Usage examples
└── tests/
    └── test_payment.py       # Unit tests

Quick Start

from scripts.payment_handler import PaymentHandler

# Initialize payment handler
handler = PaymentHandler(
    stripe_key="sk_test_...",
    alipay_config={
        "app_id": "your_app_id",
        "private_key": "your_private_key",
        "alipay_public_key": "alipay_public_key"
    }
)

# Create Stripe payment
order = handler.create_stripe_order(
    amount=99.99,
    currency="usd",
    description="Test Order"
)

# Create Alipay order
alipay_order = handler.create_alipay_order(
    amount=100.00,
    subject="Product Purchase",
    out_trade_no="ORDER123456"
)

License

MIT

Comments

Loading comments...