Payment notification API
Description of Requirement:
The SmileOne platform will notify the merchant of the order status and send the in-game products (diamonds, gold coins, etc.) after confirming that the user has successfully paid. Merchant must provide an API for sending in-game products.
Name | Required (Y/N) | Type | Description |
---|---|---|---|
game_order | Y | string | Game order number |
uid | Y | string | User role id |
sid | N | string | Game server id |
roleid | N | string | Player UID |
productid | Y | string | Product identifier |
amount | N | string | Product price |
currency | N | string | Currency |
trade_no | Y | string | Bank flow number |
trade_status | Y | string | Order status(Check appendix 3) |
sign | Y | string | Signature verification code |
Request method:POST. Parameters are passed in json format.
//success
{
"status": 200,
"game_order": "Game order number",
"game_status": "Order delivery status",// Check Appendix 3
"error": ""
}
//error
{
"status": 201, // Check Appendix 1
"game_order": "Game order number",
"game_status": "Order delivery status", // Check Appendix 3
"error": "cause of error"
}
Check Appendix 1 for details regarding the error codes.
Check Appendix 3 for details regarding the Order status