Appearance
Pay-Out Callback
- When order has been paid or failed, Server will sent a callback to your server
- Requests use http-form-post encoding
application/x-www-form-urlencoded - Gateway :
notify_urluploaded in Create request paramters
The Request paramters :
| Field | Meaning | Type | Required |
|---|---|---|---|
| order_sn | Uploaded in Create request paramters | String | True |
| money | LG system deducted amount from your merchant balance(equals the withdraw money + transaction fee).The server will send the EXACTLY money based on your request, so you DON'T need to check if this money equals the one you request | Integer | True |
| status | 1 means this order is paid0 means this order is failed, please refer to the msg field | Integer | True |
| pay_time | paid time, can be null when this order fails | String | True |
| msg | order message, it is helpful when you get a callback with status==0 | String | True |
| sign | md5_hash you need re-caculate and verify your sign value with this one, if doesn't match , means this callback is not from LG System | String | True |
The Response
- When your sever receive the callback, you need return a pure string
"ok"(without the double quotes) meaning that you got this callback - If no
okis returned, the LG system will retry 4 more times of callback
ok