Skip to content
StagePay

Products · Checkout

One checkout for global PGs and USDT

Open the checkout URL directly, or create the transaction on your server first and receive a checkoutUrl. Either way, the amount charged is the product price you registered in the console.

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

The problem

Where payment integrations usually go wrong

  • Amounts set by the client

    If you charge whatever amount the app or browser sends, changing the request is enough to pay a different amount.

  • Retries that create duplicates

    If the connection drops before the response arrives and you send the same request again, you can end up with two transactions.

  • A different integration per PG

    Every new PG means another way to request payments, verify results and receive notifications.

Features

What the checkout takes care of

  1. Checkout URL or server-to-server creation

    The quickest start is the checkout URL. To tie the order to a transaction first, call POST /api/v1/payments from your server and receive a pending transaction and a checkoutUrl. User details never appear in the checkout URL.

    • /request — start immediately with a given PG and method
    • /inapp — start from the payment method picker
    • POST /api/v1/payments — returns tid · checkoutUrl · expiresAt (write:transactions scope)
    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"}'
    201 Created responsejson
    {
      "tid": "KCP-20261128031500-a1b2c3-0f1e2d3c",
      "checkoutUrl": "https://pay.stagepay.io/checkout?tid=KCP-…&t=<hmac>",
      "expiresAt": "2026-11-28T03:45:00.000Z",
      "amount": "33000",
      "amountMinor": "33000",
      "currency": "KRW",
      "status": "pending"
    }
  2. The amount comes from the server's product price

    The amount charged is the price registered in the console for the productId and currency. The payment creation API has no amount field, and price overrides on the checkout URL apply only when the app has allowCustomPrice enabled and your server signed the price.

    • Manage product IDs and per-currency prices in the console's Products menu
    • Price override: allowCustomPrice + priceSig (HMAC-SHA256), clock skew ±900 seconds
    • Sale period, total sales, per-user sales and daily limits are checked before payment
    String signed for a price overridehmac
    canonical = "price:{appId}:{productId}:{CURRENCY}:{price}:{userId}:{priceTs}"
    priceSig  = hex(HMAC-SHA256(webhookSecret, canonical))
    priceTs   = unix seconds, |now - priceTs| <= 900
  3. Retry all you want — still one transaction

    Add an Idempotency-Key to the creation request and a retry with the same key and body returns the original result for 24 hours. The same key with a different body is rejected with 409.

    • Key: 1–255 printable ASCII characters
    • If a request with the same key is still in progress: 409 — try again shortly
    • Keys from failed requests can be reused
    Requests sent with the same Idempotency-KeyExample

    POST /api/v1/payments · Idempotency-Key: 3f6c1b2e-…-2d5e0f1a6c90

    1. #1body sha256:a91f…3c07New transaction · tid …0f1e2d3c201
    2. #2body sha256:a91f…3c07Stored result · tid …0f1e2d3c201
    3. #3body sha256:7c02…e5b1IDEMPOTENCY_KEY_REUSED409

    ttl 24h · same key + same body → same result

  4. The same checkout in apps and WebViews

    When the payment finishes, the result page sends a result message to React Native, iOS and Android WebViews and to web popups and iframes at once. Your app only needs to listen on its own channel.

    • Message type: STAGEPAY_RESULT, status: success · pending · failed
    • The result message is for the UI — deliver items based on the signed callback
    • Hand card-issuer and wallet app schemes (intent:// and others) to the OS
    Example: In-app payment
    9:415G
    In-app paymentExample
    StagePay · Checkout

    100 Gems

    ₩33,000

    Pay

    Result message (for the UI only)

    { "type": "STAGEPAY_RESULT",
      "status": "success",
      "transactionId": "KCP-…0f1e2d3c" }

    Confirming payment

  5. Confirmed only after server verification

    A payment succeeds only on PG signature verification or a PG lookup API check, or on chain confirmations for USDT. The pending → success transition happens atomically, exactly once, and only that path sends the merchant callback.

    • Browser redirect values alone never confirm a payment
    • The confirmed amount is compared with the requested amount
    • A repeated webhook still means one confirmation and one callback
    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

Supported PGs and currencies

Each PG's payment methods appear in the checkout according to the app's PG contracts and settings. Every amount is handled as an integer in the currency's minor unit (amountMinor).

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

Test the whole flow before going live

The beta environment runs the same checkout and callback flow as production, with PG test keys.

  1. Beta checkout

    Pay on beta-pay.stagepay.io with PG test keys and receive callbacks at purchaseTestUrl. Nothing is actually charged.

  2. Test methods per PG

    Use Stripe test cards, KCP and TOSS test keys, the MyCard test environment and EBANX or EnjoyPay sandboxes. The StagePay operations team connects test accounts to your app.

  3. USDT mock chain

    Simulated deposits run through the same matching and confirmation path as a real chain, without real tokens. You can also try underpaid, overpaid and late deposits.

  4. Production QA whitelist

    Even in a production app, payments from registered IPs or userIds send callbacks to purchaseTestUrl. They still go through the live PG, so they are actually charged.

Frequently asked questions

Should I use the checkout URL or the payment creation API?

Both use the same checkout and callbacks. If you want to link the order to a transaction ID (tid) before payment, or keep user details out of the checkout URL, call POST /api/v1/payments from your server. The simplest integration is a checkout URL built on your server.

Can I put the amount in the request?

By default the amount comes only from the product price registered in the console. If you really need dynamic pricing, ask an operator to enable allowCustomPrice and send price together with a signature (priceSig) created on your server. Without a valid signature, the product price applies.

Which languages does the checkout support?

With the language parameter you can open the checkout in Korean, English, Japanese, Chinese (Simplified and Traditional), Thai, Indonesian, Spanish and Malay.

How do refunds work?

KCP and Stripe payments can be fully or partially refunded from your server through the refund API. For other PGs, request the refund from the console's Transactions screen and an operator processes it. Once a refund is applied, a payment.refunded callback is sent.

Start with one integration

Follow the quickstart to create an app, create a payment and verify a callback signature.