运行时依赖
安装命令
点击复制技能文档
支付网关工具包 集成多渠道支付网关的工具包,支持 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" } ) 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 多渠道支付网关工具包,支持 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" } ) order = handler.create_stripe_order( amount=99.99, currency="usd", description="Test Order" ) alipay_order = handler.create_alipay_order( amount=100.00, subject="Product Purchase", out_trade_no="ORDER123456" )
许可证 MIT