Skip to content
StagePay

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
Example: Checkout
StagePay·CheckoutExample

100 Gems

₩33,000

gem_100 · KRW

Payment method

  • Credit / debit cardKCP
  • Easy payTOSS
  • International cardSTRIPE
  • USDT stablecoinTRC20
Pay₩33,000

tid KCP-20261128031500-a1b2c3-0f1e2d3c

Merchant callbackExample

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 confirmed·Delivered200 · 84 ms · #1
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.

  1. 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

  2. 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

  3. Confirmed

    The pending → success transition happens atomically, exactly once, and only that path sends a signed callback to the merchant.

    pending → success

  4. 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

Learn more about checkout

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.

423 payment methods through one checkout and API
PGRegionMain payment methods
KCPSouth KoreaCredit/debit cards, bank transfer, virtual accounts, mobile billing, easy pay (KakaoPay, Naver Pay, etc.)
TOSSSouth KoreaCards, quick bank transfer, easy pay (Toss Pay, etc.), mobile billing, virtual accounts, gift cards
KakaoPaySouth KoreaKakaoPay (KakaoPay Money, linked cards), direct integration without a PG
Naver PaySouth KoreaNaver Pay (points, Naver Pay Money, linked cards and bank accounts), direct integration without a PG
StripeGlobalCards (3D Secure), Apple Pay, Google Pay, local payment methods
MyCardTaiwan, Hong Kong, Malaysia, SingaporeMyCard points, local payment methods
EnjoyPayBrazil and morePIX, cards, bank transfer, e-wallets
EBANXLatin AmericaCards, PIX, Boleto, OXXO, PSE and more
WebPayGlobalCards
OneOneSoutheast AsiaLocal payment methods
USDTGlobalUSDT stablecoin (TRC20, ERC20, BEP20, Polygon)
See all payment methods

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.

Amounts as integers in each currency's minor unit
DigitsCurrency
0
  • KRW
  • JPY
  • IDR
  • VND
  • TWD

Display amount → amountMinor: ₩33,000 33000

2
  • USD
  • EUR
  • SGD
  • MYR
  • THB
  • PHP

Display amount → amountMinor: $12.50 1250

6
  • USDT

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.

  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.

  2. HMAC-SHA256 signature

    Every callback carries a v1 signature built from the timestamp and the raw body. Reject requests older than 300 seconds.

  3. 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.

  4. API key authentication

    Authenticate with Authorization: Bearer <keyId>:<secret>, with per-key scopes and an IP allowlist.

Server-to-server payment creationbash
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"}'
Callback signature verification (Node.js)node
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)
}
Merchant callbackExample

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 confirmed·Delivered200 · 84 ms · #1
Abstract image of four strands of light converging on a single mint dot
Send USDTTRC20Example
Amount to send
10.000575 USDT
Receiving address
TQx8…mQv2N
Time left
29:41
Network
Tron
Checking for deposit12 / 19 Confirmations

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]

  1. Unique-amount matching

    Each order gets a unique offset of 0.000001–0.009999 USDT, so orders stay distinct even on the same address.

  2. Confirmation-based

    A payment is confirmed, and the callback sent, only after the network's required confirmations.

  3. Exceptions go to review

    Underpaid, overpaid and late deposits are never auto-confirmed; they are left for admin review.

Supported networks
methodNetworkDefault confirmations
TRC20Tron19 (solidified)
ERC20Ethereum12
BEP20BNB Smart Chain15
POLYGONPolygon PoS128
More on USDT payments

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.

  1. Three-way verification

    Engine calculation, database aggregation and line totals must all match before a batch is VERIFIED. A checksum detects any later change.

  2. Four-eyes approval

    Whoever creates a batch cannot approve it. Every status change is written to the audit log with before and after values.

  3. Per-transaction rounding

    Fees and VAT are rounded half-up per transaction, never on the totals.

  4. 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.

Abstract image of neatly stacked translucent ledger sheets and alignment lines
Settlement batchSTL-20261128-sample-KRW-0001Example
  1. DRAFT

  2. VERIFIED

  3. APPROVED

  4. 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

Checksum sha256:9c1f…a07eApprover differs from creator

Principles

Rules for code that handles money

The same rules apply to every PG and USDT payment path.

  1. 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.

  2. 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.

  3. Confirmation happens once

    The pending → success transition is atomic, and only the path that wins it sends the callback.

  4. No private keys

    For USDT, customers send directly to the receiving address and the server only reads the blockchain.

  5. 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.

  6. Problems are reported right away

    Payment problems and errors go straight to operations alerts, and every callback attempt and raw PG exchange is recorded.

Learn more about security

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.