Skip to content

Create a Pay-In Order

The Request paramters :

FieldMeaningTypeRequired
app_idYour Merchant IDStringTrue
trade_typeTrade code, please ask the service manStringTrue
order_snOrder number, must be uniqueStringTrue
moneyThis field needs to multiply 100 and remove the float part. eg. you need to receive 50.5, this field should be 5050IntegerTrue
notify_urlWhen this order is paid, a notify message will be sent to your server, leave the url hereStringTrue
ipYour client's ip address, if you don't have, use 0.0.0.0 insteadStringFalse
remarkIf you upload this field, it will be send back to you in the callback paramtersStringFalse
signmd5_hash, refer to: SignatureStringTrue

The Response

json
{
    "status":1, // 1 means request success , 0 means request fail
    "msg":"ok", // when a request is failed, please read msg to find out why
    "data":{
        "type":"url",
        "pay_url":"http://..." // if staus == 1, you will get a pay url, help your client open it, they can do the payment
    }
}

Thanks for choosing LG Payment