Appearance
Create a Pay-Out Order
- Requests use http-form-post encoding
application/x-www-form-urlencoded - Responses use JSON encoding
application/json - Gateway : https://www.lg-pay.com/api/deposit/create
The Request paramters :
| Field | Meaning | Type | Required |
|---|---|---|---|
| app_id | Your Merchant ID | String | True |
| order_sn | Order number, must be unique | String | True |
| currency | Withdraw currency codes , please ask the service man | String | True |
| money | This field needs to multiply 100 and remove the float part. like you need to receive 50.5, this field should be 5050 | Integer | True |
| notify_url | When this order is paid, a notify message will be sent to your server, leave the url here | String | True |
more fields | Deponds on your currency code, more fields are reqired, please refer to the according page | String | True |
| sign | md5_hash refer to: Signature | String | True |
Test callback
- when set currency to
TEST - set money =
1, the test order will be failed directly, and callback with failure information will be sent at the same time - set money =
2, the test order will be successful directly, and callback with successful information will be sent at the same time - set money =
other than1or2, the test order will be set to pedding status, no callback will be sent
The Response
| Field | Meaning | Type | Required |
|---|---|---|---|
| status | 1: means the order is procceing, but you still need to get the final order status(success|fail) from Callback or Query 0: means the order fail directly, a callback with failure information will also sent to your server on notify_url | Integer | True |
| msg | order mesaages, can be helpful when a order fails | String | True |
Response Sample
json
{
"status":1,
"msg":"ok",
}