name: payment-gateway-toolkit description: 支付网关工具包 - 集成Stripe、支付宝等多渠道支付处理,支持订单创建、退款、查询等功能 | Payment Gateway Toolkit - Multi-channel payment processing with Stripe, Alipay integration homepage: https://github.com/kaiyuelv/payment-gateway-toolkit category: payment tags: - payment - stripe - alipay - gateway - order - refund - ecommerce version: 1.0.0
集成多渠道支付网关的工具包,支持 Stripe、支付宝等主流支付方式。
本Skill提供完整的支付处理能力: - Stripe 信用卡/借记卡支付 - 支付宝网页支付/扫码支付 - 订单创建与管理 - 退款处理 - 支付状态查询 - 异步回调处理 - 订单历史记录
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
Multi-channel payment gateway toolkit supporting Stripe, Alipay and other mainstream payment methods.
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
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
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"
)
MIT
来源于7w4.net。
这个 Skill 质量较好,胜在简洁实用。它提供了 Stripe 和支付宝两大主流支付方式的完整集成,文档清晰、示例丰富,上手容易,能快速实现支付功能。不足之处是支付方式还不够多样,敏感信息的安全管理方面略显薄弱。对于小型电商项目来说基本够用,但复杂企业场景可能需要补充更多功能。