Skip to content

Pay-In Callback

  • When order has been paid, Server will sent a callback to your server
  • Requests use http-form-post encoding application/x-www-form-urlencoded
  • Gateway : notify_url uploaded in Create request paramters
  • If you need create a order with money of 100.00, and your client paid 30.00, this order is also considered as failure(cheatting), no callback will be send
  • when you sucessfully start a test order, you can ask service man to send a test-callback for you, but the money will be set to zero, because you don't actually paid for this order
  • you can use postman to test your callback url like this, we will send notification in the same form postman postbody

The Request paramters :

FieldMeaningTypeRequired
order_snUploaded in Create request paramtersStringTrue
moneyUploaded in Create request paramtersIntegerTrue
status1 means this order is paid, since only paid order will send a callback, so this field is always 1IntegerTrue
pay_timepaid timeStringTrue
msgorder messageStringTrue
remarkuploaded in Create request paramtersStringFalse
signmd5_hash you need re-caculate and verify your sign value with this one, if doesn't match , means this callback is not from LG SystemStringTrue

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 ok is returned, the LG system will retry 4 more times of callback
ok

Thanks for choosing LG Payment