충전 API 요청
웹샵에서 결제를 완료 한 경우 기능입니다.
웹샵에서 결제를 하고자 하는 이용자를 조회시에 사용하는 API 입니다. 아래 예제로 작동이 되면 연동 작업이 완료된 것입니다.
충전 API 요청
POST
/purchase
게임ID 가 유효한지 확인하는 웹훅 입니다.
Headers
Name
Value
Content-Type
application/json
X-API-KEY
API KEY
Body
Name
Type
Description
Example
userID
string
고객이 입력한 사용자ID
playerID
serverID
string
서버ID (필요한 경우)
promether
amount
number
상품가격
1.99
currency
string
통화
USD
method
string
서브 결제 수단
100000
status
number
상태
1 (정상)
createdAt
date
결제시간
2024-11-11 12:00:00
productID
string
상품ID
com.game.item.001
paymentID
string
결제수단ID
kcp
orderID
string
주문번호
KCP-20250318111330517771-ca0662-375a26c2
merchantTransactionId
string
PG 사 주문번호 (옵션)
827363512525
Response
Last updated