GamePot App 特殊事項
說明 webhookType 為 GAMEPOT 之 App 的收銀台參數、GamePot 各區域回呼端點與酬載格式差異。
與 GamePot 平台串接的 App(App 設定 webhookType = GAMEPOT)會將付款完成通知傳送到 GamePot 儀表板 API,而非商戶伺服器。發放道具由 GamePot 處理。
呼叫收銀台
除了一般參數外,還要傳入 GamePot 資訊。
| 參數 | 說明 |
|---|---|
region | GamePot 區域代碼(見下表)。省略時使用 App 設定中的區域 |
projectId | GamePot 專案 ID。省略時使用 App 設定值 |
userId | GamePot memberId |
token | (/inapp)GamePot JWT。可用以取代 userId |
回呼端點
POST {區域網址}/v1/purchase
region | 網址 |
|---|---|
KR | https://dashboard-api.gamepot.ntruss.com |
US | https://us-dashboard-api.gamepot.ntruss.com |
JP | https://jp-dashboard-api.gamepot.ntruss.com |
SG | https://sg-dashboard-api.gamepot.ntruss.com |
BETA | https://dashboard-api.gamepot.beta.ntruss.com |
DEV | https://dev-api.gamepot.io |
GRAVITY | https://gravity-dashboard-api.gamepot.io |
若無法得知區域,回呼會記錄為 failed(未設定 URL)。
酬載
{
"event": "payment.succeeded",
"tid": "KCP-20260101090000123456-a1b2c3-9f8e7d6c",
"amountMinor": 12000,
"projectId": "gp-project-id",
"memberId": "user_42",
"productId": "gem_100",
"storeId": "pc",
"serviceId": "stagepay",
"currency": "KRW",
"price": 12000,
"remoteIP": "203.0.113.10",
"remoteIp": "203.0.113.10",
"transactionId": "KCP-20260101090000123456-a1b2c3-9f8e7d6c",
"paymentId": "KCP_card",
"orderId": "KCP-20260101090000123456-a1b2c3-9f8e7d6c",
"serverId": "s1",
"playerId": "hero42",
"etc": "",
"provideItem": true,
"meta": "",
"userdata": "",
"paidAt": "2026-01-01T00:00:00.000Z"
}- 若商品有 GamePot 商品代碼(
productCode),productId會使用該值。 paymentId的格式為{PG代碼}_{付款方式}。- 標頭(
X-StagePay-Event、X-StagePay-Delivery、X-StagePay-Timestamp、X-StagePay-Signature)與重試規則與一般 App 相同。
差異摘要
| 項目 | 一般 App | GamePot App |
|---|---|---|
| 接收端 | purchaseTestUrl / purchaseRealUrl / callbackUrl | GamePot 區域端點 |
payment.succeeded | 傳送 | 傳送 |
payment.refunded | 傳送 | 不傳送(記錄為已略過) |
| 測試白名單 | 適用 | 不適用 |
| 本文格式 | 標準酬載 | 上述 GamePot 格式 |
GamePot App 的退款,請搭配 GamePot 儀表板的收回功能,依營運流程處理。