🦀 ClawHub
Payment Gateway Toolkit
by @kaiyuelv
支付网关工具包 - 集成Stripe、支付宝等多渠道支付处理,支持订单创建、退款、查询等功能 | Payment Gateway Toolkit - Multi-channel payment processing with Stripe, Alipay integration
💡 Examples
from scripts.payment_handler import PaymentHandlerInitialize 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"
)
TERMINAL
clawhub install payment-gateway-toolkit