GamePot 앱 특이사항
webhookType이 GAMEPOT인 앱의 결제창 파라미터, GamePot 리전별 콜백 엔드포인트, 페이로드 형식 차이를 설명합니다.
GamePot 플랫폼과 연동된 앱(앱 설정 webhookType = GAMEPOT)은 결제 완료 통지를 가맹점 서버가 아니라 GamePot 대시보드 API로 보냅니다. GamePot이 아이템 지급을 처리합니다.
결제창 호출
일반 파라미터에 더해 GamePot 정보를 전달합니다.
| 파라미터 | 설명 |
|---|---|
region | GamePot 리전 코드 (아래 표). 생략하면 앱 설정의 리전 사용 |
projectId | GamePot 프로젝트 ID. 생략하면 앱 설정값 사용 |
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"
}productId는 상품의 GamePot 상품 코드(productCode)가 있으면 그 값을 사용합니다.paymentId는{PG코드}_{결제수단}형식입니다.- 헤더(
X-StagePay-Event,X-StagePay-Delivery,X-StagePay-Timestamp,X-StagePay-Signature)와 재시도 규칙은 일반 앱과 같습니다.
차이점 요약
| 항목 | 일반 앱 | GamePot 앱 |
|---|---|---|
| 수신처 | purchaseTestUrl / purchaseRealUrl / callbackUrl | GamePot 리전 엔드포인트 |
payment.succeeded | 발송 | 발송 |
payment.refunded | 발송 | 발송하지 않음 (건너뜀으로 기록) |
| 테스트 화이트리스트 | 적용 | 적용 안 됨 |
| 본문 형식 | 표준 페이로드 | 위 GamePot 형식 |
GamePot 앱의 환불은 GamePot 대시보드의 회수 기능과 함께 운영 절차로 처리하세요.