Server Purchase Delivery Notify Interface Description
Description:
After The User completes The Recharge, The ULU Platform Server Will Post Data To Game Develop Server.Game Develop Server Should Verify The Data,Then Distribute Relevant Game Props To User.
After Receiving And Processing Successfully, The Game Develop Server Should Response SUCCESS Msg And ULU Platform Server Will Not Notify Again. Otherwise, The ULU Platform Server Will Notify Three Times In A Row Within A Period Of Time.
If The Game Develop Server Response Something Other Than SUCCESS Msg Or The Request Times Out, The ULU Platform Server Will Retry The Request After A While.
Signature Type: MD5 Signature With UpperCase.
Request URL:
Game Develop Provide
Request Method:
- POST
Content-Type:
- application/json
Request Body:
Parameter Name | Required | Type | Describe |
---|---|---|---|
orderNo | true | String(50) | Order Number, Unique. |
gameId | true | Int(10) | GameId. |
uid | true | String(50) | User Uid. |
amount | true | String(20) | Goods Fixed Price. |
currency | true | String(20) | Goods Fixed Currency. |
sandbox | true | Int(1) | Whether The ULU Platform Server Environment Code.1:Test,0:Product. |
productId | true | String(50) | User ProductId |
serverId | true | String(255) | User ServerId |
roleId | true | String(255) | User RoleId |
extraData | true | String(500) | The extraData Passed By Game Develop When Apply The Order,Will Be Returned As Is. |
payTime | true | Int(20) | Pay Timestamp,Exp:1725271615000 |
signature | true | String(50) | Signature Information, Sorted By Parameter Name a-z (Signature Is Not Encrypted), Concatenated Parameter Values + Secret (key) To Get FinalString, Then Encrypted With md5(), For Example: md5 (amount+channelReceipt+currency+...+uid+secret) |
Request Body Demo:
{
"orderNo":"MYCARD1544990963624099842",
"gameId":100160,
"uid":"1544990909915996161",
"amount":"33",
"currency":"TWD",
"sandbox":1,
"productId":"ulu_poker_001",
"serverId":"2",
"roleId":"137",
"extraData":"extraData",
"payTime":1658415600000,
"signture":"91F6EF7C4B5776D25E64206C97464B59"
}
Response Parameter:
Parameter Name | Type | Describe |
---|---|---|
code | Int(5) | Status Code:0 Is SUCCESS. |
message | String(500) | Msg. |
Successful Response Demo:
{
"code": 0,
"message":"SUCCESS"
}
Error Response Demo:
{
"code": 500,
"message":"roleId does not exist"
}