StagePay Developer Docs
Integration guide for StagePay, the global payment gateway for games and apps. Covers opening the checkout, verifying signed callbacks, USDT payments, refunds, the REST API, and settlement.
StagePay is a global payment gateway for games and apps. With a single checkout URL (or a single server-to-server API call), merchants can accept payments through multiple PGs such as KCP, Toss, Stripe, MyCard, and EBANX, as well as USDT (stablecoin) payments. When a payment is confirmed, the merchant receives an HMAC-SHA256-signed callback and grants the item.
These are the v2 docs
These docs cover StagePay v2 (signed callbacks, pending transactions, USDT, settlement v2). If you are migrating from v1, first review the Summary and Migration sections of the Changelog.
Where to start
Quickstart (5 minutes)
Issue API keys → open the checkout → verify the callback → test
Core concepts
Apps, transaction IDs (tid), the state machine, minor-unit amounts, beta/real environments
Callback signature verification
Node.js · PHP · Python · Go · Java examples and test vectors
USDT payments
TRC20 · ERC20 · BEP20 · Polygon, unique-amount matching
REST API v1
Authentication, rate limits, IP allowlist, scopes, endpoints
Settlement
Fees (bps), VAT, cycles, carry-forward, formulas and verification
Integration flow at a glance
Customer (game/app) Merchant server StagePay PG / blockchain
│ Buy button │ │ │
│────────────────────▶│ Build checkout URL │ │
│◀────────────────────│ (or POST /api/v1/payments) │ │
│ Open checkout ─────────────────────────────────▶│ Create pending transaction │
│ │ │──── Payment request ─────────▶│
│ Pay ◀──────────────────────────────────────────────────────────────────────────▶│
│ │ │◀─── Result / server check ────│
│ │◀── Signed callback (POST) ─│ Transition to success (once) │
│ │── 2xx response ───────────▶│ │
│ /return result ◀─────────────────────────────│ (sent to app via postMessage) │
│ │ Grant item │ │- The callback (server-to-server) is the source of truth for payment confirmation. Browser redirects and
/returnresults are for display only and must not be used as the basis for granting items. - Callbacks are retried up to 8 times until a 2xx response is received. Callbacks for the same payment share the same
X-StagePay-Deliveryvalue, so you can prevent duplicate grants.
Supported scope
| Category | Details |
|---|---|
| PGs | KCP, TOSS, STRIPE, MYCARD, ENJOYPAY, WEBPAY, EBANX, ONEONE |
| Cryptocurrency | USDT — TRC20, ERC20, BEP20, POLYGON |
| Payment currencies | KRW, USD, JPY, TWD, EUR, BRL, MXN, and more (varies by PG; see Payment methods and country support) |
| Integration options | Checkout URL, server-to-server payment creation API, in-app WebView (React Native · iOS · Android · Unity) |
| Operations tools | Merchant console (transactions, logs, API keys, webhook secrets), REST API v1, settlement reports (CSV) |
Using these docs with AI agents
These docs are also available in LLM-friendly formats.
/llms.txt— Table of contents for all docs plus a summary of key facts/llms-full.txt— Full text of all docs (English + Korean)- Append
.mdto any page URL to get the raw Markdown. Example:/en/getting-started/quickstart.md