1
Check which providers are enabled
wechat and alipay instead of stripe.2
Start a payment
Call Stripe returns a
POST /api/billing/payments with a session Bearer token.redirect_url (Checkout). WeChat Pay and Alipay return a qr_code_url you render as a QR for the payer.3
Complete the payment
- Stripe: open
redirect_urland pay with a card. - WeChat Pay / Alipay: scan the QR with the corresponding app on your phone.
4
Wait for confirmation
The provider calls
POST /api/payments/webhook/{provider} and the backend credits your wallet. Poll GET /api/billing/payments/{id} until status becomes paid.5
Confirm your wallet balance
Currency is fixed by the site domain: USD on
.com, CNY on .cn. You cannot fund a .com wallet in CNY or vice versa.Next steps
- Download the invoice or receipt for the payment.
- Check usage with
GET /api/billing/usage.