← 返回
未分类 Key

Payment Gateway Toolkit

支付网关工具包 - 集成Stripe、支付宝等多渠道支付处理,支持订单创建、退款、查询等功能 | Payment Gateway Toolkit - Multi-channel payment processing with Stripe, Alipay integration
支付网关工具包 - 集成Stripe、支付宝等多渠道支付处理,支持订单创建、退款、查询等功能
kaiyuelv kaiyuelv 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 需要
★ 0
Stars
📥 484
下载
💾 0
安装
1
版本
#latest

概述

支付网关工具包

集成多渠道支付网关的工具包,支持 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

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-03 07:05 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

business-ops

Trello

steipete
使用 Trello REST API 管理看板、列表和卡片
★ 162 📥 41,346
business-ops

Calendar

ndcccccc
日历管理与日程安排。创建事件、管理会议,并实现多日历平台同步。
★ 7 📥 23,253
dev-programming

Api Test Automation

kaiyuelv
API接口测试自动化工具,支持REST/GraphQL,包含接口测试、性能测试、契约测试、Mock服务等功能 | API Test Automation for REST/GraphQL with performance, contract
★ 1 📥 2,422