Payment gateway for games and apps
One integration for global PGs and USDT payments
One checkout and one API take you from KCP and TOSS to Stripe, MyCard, EBANX and USDT. Payments are confirmed only after the server has checked them, and results arrive as signed callbacks.
- KCP
- TOSS
- KakaoPay
- Naver Pay
- Stripe
- MyCard
- EnjoyPay
- EBANX
- WebPay
- OneOne
- USDT

100 Gems
₩33,000
Payment method
- Credit / debit cardKCP
- Easy payTOSS
- International cardSTRIPE
- USDT stablecoinTRC20
tid KCP-20261128031500-a1b2c3-0f1e2d3c
POST https://merchant.example/stagepay/callback
- X-StagePay-Event:
- payment.succeeded
- X-StagePay-Delivery:
- 7c1e9a42-3b6d-4f0e-9a51-5d0b
- X-StagePay-Timestamp:
- 1795835700
- X-StagePay-Signature:
- v1=5f9a0c7d…e21b
- Payment methods via 5 PGs + USDT
- 423
- USDT networks
- 4
- Automatic retries for signed callbacks
- 8×
- Minor-unit digits for KRW · USD · USDT
- 0 · 2 · 6
The path of one payment
From request to settlement, one unbroken line
The three strokes of the StagePay logo are the path a single payment takes. The mint dot at the end marks confirmation, once the server has finished checking.
01 · Request
Start from checkout or the API
Send the customer to the checkout URL, or create the transaction first with POST /api/v1/payments. The amount charged comes only from the product price stored on the server.
POST /api/v1/payments
02 · Verify
The server checks for itself
Amount and status are matched against PG signature verification, a PG lookup API, or on-chain confirmations for USDT. Browser redirect values alone never confirm a payment.
amountMinor === verified.amount
Confirmed
The pending → success transition happens atomically, exactly once, and only that path sends a signed callback to the merchant.
pending → success
03 · Settle
Settled in per-currency batches
Confirmed transactions go into settlement batches per app × currency, and are paid out after three-way verification and approval.
DRAFT → VERIFIED → APPROVED → PAID
Coverage
423 payment methods through one checkout and API
Supported as of v2. The payment methods shown depend on the PGs and currencies contracted for each app.
| PG | Region | Main payment methods |
|---|---|---|
| KCP | South Korea | Credit/debit cards, bank transfer, virtual accounts, mobile billing, easy pay (KakaoPay, Naver Pay, etc.) |
| TOSS | South Korea | Cards, quick bank transfer, easy pay (Toss Pay, etc.), mobile billing, virtual accounts, gift cards |
| KakaoPay | South Korea | KakaoPay (KakaoPay Money, linked cards), direct integration without a PG |
| Naver Pay | South Korea | Naver Pay (points, Naver Pay Money, linked cards and bank accounts), direct integration without a PG |
| Stripe | Global | Cards (3D Secure), Apple Pay, Google Pay, local payment methods |
| MyCard | Taiwan, Hong Kong, Malaysia, Singapore | MyCard points, local payment methods |
| EnjoyPay | Brazil and more | PIX, cards, bank transfer, e-wallets |
| EBANX | Latin America | Cards, PIX, Boleto, OXXO, PSE and more |
| WebPay | Global | Cards |
| OneOne | Southeast Asia | Local payment methods |
| USDT | Global | USDT stablecoin (TRC20, ERC20, BEP20, Polygon) |
Amounts as integers in each currency's minor unit
Every amount is stored and calculated as an integer amountMinor. No floating point, and different currencies are never summed together.
| Digits | Currency |
|---|---|
| 0 |
Display amount → amountMinor: ₩33,000 33000 |
| 2 |
Display amount → amountMinor: $12.50 1250 |
| 6 |
Display amount → amountMinor: 10.000575 USDT 10000575 |
USDT is normalized to 6 digits (micro units) on every network.
Developers
Create on the server, confirm with a signature
Create the payment on your server, send the customer to checkoutUrl, and verify the signed callback. That is the whole integration. The full spec is available as OpenAPI 3.1.
Idempotency-Key
The same key with the same body returns the same result for 24 hours. Reusing a key with a different body is rejected with 409.
HMAC-SHA256 signature
Every callback carries a v1 signature built from the timestamp and the raw body. Reject requests older than 300 seconds.
Automatic retries
Without a 2xx response, the callback is resent up to 8 times at intervals growing from 1 minute to 24 hours. X-StagePay-Delivery stays the same.
API key authentication
Authenticate with Authorization: Bearer <keyId>:<secret>, with per-key scopes and an IP allowlist.
curl -X POST https://api.stagepay.io/api/v1/payments \
-H "Authorization: Bearer $STAGEPAY_KEY_ID:$STAGEPAY_KEY_SECRET" \
-H "Idempotency-Key: 3f6c1b2e-8a4d-4c1e-9b7a-2d5e0f1a6c90" \
-H "Content-Type: application/json" \
-d '{"productId":"gem_100","currency":"KRW","userId":"user_42","pg":"KCP","method":"card"}'import crypto from "node:crypto"
export function verifyStagePaySignature(rawBody, timestamp, signature, secret) {
if (!/^\d+$/.test(timestamp ?? "")) return false
if (Math.abs(Date.now() / 1000 - Number(timestamp)) > 300) return false
const expected =
"v1=" + crypto.createHmac("sha256", secret).update(`${timestamp}.`).update(rawBody).digest("hex")
const a = Buffer.from(expected)
const b = Buffer.from(signature ?? "")
return a.length === b.length && crypto.timingSafeEqual(a, b)
}POST https://merchant.example/stagepay/callback
- X-StagePay-Event:
- payment.succeeded
- X-StagePay-Delivery:
- 7c1e9a42-3b6d-4f0e-9a51-5d0b
- X-StagePay-Timestamp:
- 1795835700
- X-StagePay-Signature:
- v1=5f9a0c7d…e21b

- Amount to send
- 10.000575 USDT
- Receiving address
- TQx8…mQv2N
- Time left
- 29:41
- Network
- Tron
Send the exact amount shown, down to the last decimal.
Stablecoin
USDT with the same callbacks and the same settlement
Deposits on TRC20, ERC20, BEP20 and Polygon are read directly from the chain and then confirmed. No private keys are kept on the server.
Base amount10.000000
+Unique offset0.000575
=Amount charged10.000575 USDT
amountMinor = 10000000 + 575 = 10000575 · offset ∈ [1, 9999]
Unique-amount matching
Each order gets a unique offset of 0.000001–0.009999 USDT, so orders stay distinct even on the same address.
Confirmation-based
A payment is confirmed, and the callback sent, only after the network's required confirmations.
Exceptions go to review
Underpaid, overpaid and late deposits are never auto-confirmed; they are left for admin review.
| method | Network | Default confirmations |
|---|---|---|
| TRC20 | Tron | 19 (solidified) |
| ERC20 | Ethereum | 12 |
| BEP20 | BNB Smart Chain | 15 |
| POLYGON | Polygon PoS | 128 |
Settlement
In settlement, verification comes before calculation
Batches are built per app × currency and recalculated three independent ways. Only when all three match does a batch move on to approval.
Three-way verification
Engine calculation, database aggregation and line totals must all match before a batch is VERIFIED. A checksum detects any later change.
Four-eyes approval
Whoever creates a batch cannot approve it. Every status change is written to the audit log with before and after values.
Per-transaction rounding
Fees and VAT are rounded half-up per transaction, never on the totals.
Open to merchants
Merchants see batches and the per-transaction calculation behind them in the console or via GET /api/v1/settlements, with CSV export.

DRAFT
VERIFIED
APPROVED
PAID
- Transactions
- 100
- Gross
- ₩3,300,000
- Refunds
- −₩33,000
- Fees
- −₩82,500
- VAT
- −₩8,300
- Net payout
- ₩3,176,200
Engine calculation
₩3,176,200
DB aggregation
₩3,176,200
Line totals
₩3,176,200
Principles
Rules for code that handles money
The same rules apply to every PG and USDT payment path.
Browser values never confirm a payment
Redirect parameters are informational only. Success is decided by PG signature verification, a PG lookup API or on-chain confirmations.
The server sets the amount
The create-payment request has no amount field. The amount charged comes from the product price registered on the server.
Confirmation happens once
The pending → success transition is atomic, and only the path that wins it sends the callback.
No private keys
For USDT, customers send directly to the receiving address and the server only reads the blockchain.
Secrets stay out of logs
Passwords, tokens, API keys and signatures are masked, and anything shaped like a card number has its middle digits hidden.
Problems are reported right away
Payment problems and errors go straight to operations alerts, and every callback attempt and raw PG exchange is recorded.
Frequently asked questions
What is StagePay?
A payment gateway that connects Korean and global PGs and USDT payments through one checkout and API. It also provides a merchant console, settlement and developer integration tools.
Which payment methods are supported?
The KCP, TOSS, Stripe, MyCard, EnjoyPay, EBANX, WebPay and OneOne PGs, plus USDT (TRC20, ERC20, BEP20, Polygon). The methods actually available depend on each app's PG contracts and settings.
How am I notified when a payment completes?
A signed HTTP POST callback is sent to your server. Without a 2xx response it is retried up to 8 times at increasing intervals from 1 minute to 24 hours, after which it can be resent manually from the admin console.
What is the settlement cycle?
Settlement batches are created daily, weekly or monthly according to the settlement policy for each app and currency. The fee rate, hold period (T+N) and minimum payout are set by contract.
Start with one integration
Follow the quickstart to create an app, create a payment and verify a callback signature.

