外部支付
为关联外部支付,可设置服务器之间的请求。
使用相应功能前,请务必向NAVER Cloud Platform咨询详细的使用方法。
请求、响应及错误代码
请求
POST url : https://gamepot.apigw.ntruss.com/gpapps/v2/thirdparty/purchase Header : 'content-type: application/json' Header : 'x-api-key: xxxxxxxxxxx' data: { "projectId": "e948e5bc-dccd-4729-b9b0-b547ae34b85d", "store": "tpay", "productId": "purchase_001", "transactionId": "t-123412812-sadl-2384-75847", "memberId":"89a907ed-0e1d-42fb-ae4d-75e95581220d", "currency": "KRW", "price":1000, "paymentId": "prepaid", "uniqueId": "" }报头
类型
是否必填
说明
x-api-keyString必填
GAMEPOT发放的认证密钥
属性
类型
最大长度
说明
projectIdString128
GAMEPOT SDK的项目ID
storeString64
支付商店
productIdString256
支付的道具ID
transactionIdString512
支付固有ID
memberIdString128
GAMEPOT SDK的用户ID
currencyString64
付款货币
priceNumber-
支付金额
paymentIdString64
支付方式
uniqueIdString512
游戏内支付固有ID
响应
属性
类型
概述
statusInteger结果值
1:成功 失败请参考以下错误代码messageString出错内容
错误代码
代码
概述
-1body存在遗漏数据时 发送HTTP请求时,确认是否完成输入
projectId、transactionId、productId、store、memberId-2price的值不是number类型时-3没有
projectId时-4项目不支持该API时 咨询GAMEPOT
-5已存在
transactionId时-6DB错误。 咨询GAMEPOT
Last updated