This reference is limited to routes that exist in the current repository and are exposed by the running gateway router.
The public gateway currently exposes a small set of routes. Merchant systems primarily usePOST /v1/gateway/pay to create payments and POST /v1/gateway/queryto query them. Provider systems call /v1/gateway/callback/:provider. The public status page reads from GET /v1/public/status.
/v1/gateway/payCreates a gateway payment order. The request supports two authentication styles: simplified mode with appId + appSecret, or legacy signed mode withtimestamp + nonce + sign.
appIdappSecretoutOrderNoamountcurrencypayCurrencyprovidersubjectproductCodetimestampnoncesignemailplanTypereturnUrlextra{ "appId": "app_demo_001", "appSecret": "your-app-secret", "outOrderNo": "ORDER-20260426-001", "amount": 88, "currency": "USD", "provider": "stripe", "subject": "Pro plan", "returnUrl": "https://merchant.example.com/billing/return"}{ "code": 0, "data": { "gatewayOrderNo": "ORD-1777027063851", "paymentId": "cs_test_xxx", "payAddress": "", "pay_address": "", "payAmount": 0, "payUrl": "https://checkout.example.com/session/xxx", "pay_url": "https://checkout.example.com/session/xxx", "status": 0 }, "msg": "操作成功"}/v1/gateway/queryQueries a gateway order by gatewayOrderNo or outOrderNo. This route uses the legacy signed authentication fields.
appIdgatewayOrderNooutOrderNotimestampnoncesign{ "code": 0, "data": { "gatewayOrderNo": "ORD-1777027063851", "outOrderNo": "ORDER-20260426-001", "amount": 88, "currency": "USD", "payCurrency": "", "status": 1, "statusText": "success", "provider": "stripe", "paymentId": "cs_test_xxx", "payAddress": "", "payAmount": 88 }, "msg": "操作成功"}/v1/gateway/callback/:providerThis route is for upstream payment providers, not for merchant systems. The gateway reads the raw request body, verifies the provider-specific callback, and updates the internal order state.
/v1/gateway/callback/:provider. Providers call this route. Merchants receive a separate downstream notify payload from the gateway after callback verification.{ "status": "ok"}Some adapters redirect the customer back through the gateway. These GET routes mark the visible return state for the order and return a compact JSON payload.
/payment/success?order={gatewayOrderNo}/payment/cancel?order={gatewayOrderNo}/payment/pending?order={gatewayOrderNo}{ "status": "success", "gatewayOrderNo": "ORD-1777027063851", "outOrderNo": "ORDER-20260426-001"}/v1/public/statusReturns the public system status payload used by the marketing-site status page. It reports current gateway health, retained snapshot history, provider connectivity, and derived incident periods.
{ "ok": true, "data": { "summary": { "updatedAt": "2026-04-26T07:50:29.836653913Z", "refreshSeconds": 60, "overallStatus": "degraded", "message": "Gateway systems degraded" }, "history": [], "providers": [], "components": [], "incidents": [] }}