Skip to main content

Direct API

Request URL

POST https://sandbox-th.lianlianpay-inc.com/gateway

Request Body

ParameterTypeLengthRequiredDescription
versionstring4truefixed value: v1
servicestring64trueservice code, see Service
merchant_idstring18trueunique identifier for merchant assigned by LianLian, 18 digits prefix with '14'
store_idstring18falsestore id. unique identifier of the store, 18 digits prefix with '14'
merchant_order_idstring64truemerchant order id, only digits, characters, dash and underline are supported, unique value for each transaction
order_amountstring8,2trueorder amount, up to two decimal
order_currencystring3trueorder currency, supported Currency
order_descstring256trueorder description
payment_methodstring32truesee Payment Product
customerCustomer-optionalif service = llpth.alipay.offline.pay, Required = false, others Required = true
productsList-falsepayer product info, see Product
notify_urlstring256falsepayment result webhook
redirect_urlstring256falseredirect to the assigned url after payer complete payment
buyer_identity_codestring32optionalonly required for service = llpth.alipay.offline.pay and payment_method = MERCHANT_SCAN
auth_codestring20optionalonly required for service = llpth.wechatpay.pay and payment_method = MERCHANT_SCAN
appidstring20optionalonly required for service = llpth.wechatpay.pay and payment_method is one of INAPP_PAYMENT or APP_PAYMENT
openidstring32optionalonly required for service = llpth.wechatpay.pay and payment_method = INAPP_PAYMENT
clientClient-optionalonly required for service = llpth.wechatpay.pay and payment_method = H5_PAYMENT
cardCard-optionalonly required for service = llpth.bankcard.pay
app_callback_urlstring256optionalonly required for service = llpth.mobile.banking.pay and payment_method is one of
EASY_APP_BILL or EASY_APP_CREDIT or EASY_APP_ALL
mobile_numberstring20optionalonly required for service = llpth.mobile.banking.pay and payment_method is one of
KPLUS_NOTIFICATION or KMA_NOTIFICATION
note:   only thai mobile number and with no country code, just like 0811205398

Response Body

ParameterTypeLengthRequiredDescription
merchant_idstring18optionalmerchant_id in request
merchant_order_idstring64optionalmerchant_order_id in request
order_idstring18truelianlian bill id, one on one with merchant order id
order_statusstring2truesee status enums Payment Status
order_amountstring8,2trueorder_amount in request
order_currencystring3trueorder_currency in request
create_time
(order_create_time)
string19truepayment bill create time, timezone with UTC+7(Asia/Bangkok)
if service = llpth.alipay.offline.pay, this field is order_create_time, not create_time
pay_paramsstring1024optionalonly for service = llpth.wechatpay.pay and payment_method in INAPP_PAYMENT APP_PAYMENT
req_data_to_channelstring2048optionalonly for service = llpth.alipay.pay and payment_method = APP_PAYMENT
qr_codestring2048optionalonly for service = llpth.thaiqr.pay and payment_method = THAI_QR
qr_code_expire_secstring8optionalonly for service = llpth.thaiqr.pay and payment_method = THAI_QR
link_urlstring256optionalservice = llpth.alipay.offline.pay and paymentmethod = DYNAMIC_CODE
service = llpth.alipay.pay and payment_method in WEB_PAYMENT WAP_PAYMENT
service = llpth.wechatpay.pay and payment_method in H5_PAYMENT
service = llpth.mobile.banking.pay and payment_method like `EASY_APP
*<br/>service = llpth.truemoney.pay<br/>service = llpth.shopeepay.pay<br/>service = llpth.linepay.pay`
link_url_appstring256optionalservice = llpth.truemoney.pay
service = llpth.shopeepay.pay
link_url_expire_secstring8optionalservice = llpth.truemoney.pay
service = llpth.shopeepay.pay
service = llpth.linepay.pay

Alipay Offline Payment

MERCHANT_SCAN

Payment Sequence

Request and Response Sample

  • Request
{
"version": "v1",
"service": "llpth.alipay.offline.pay",
"merchant_id": "142023010100009001",
"merchant_order_id": "ORDER_202301010001",
"order_amount": "10.23",
"order_currency": "THB",
"order_info": "display your order info",
"payment_type": "MERCHANT_SCAN",
"store_id": "142023010100009002",
"buyer_identity_code": "289832926768089864",
"notify_url": "https://www.lianlianpay.co.th/sample/callback"
}
  • Response
{
"code": 200000,
"data": {
"order_id": "122023010100160021",
"order_status": "WP",
"order_amount": "1.00",
"order_currency": "THB",
"payment_type": "MERCHANT_SCAN",
"due_date": "2023-01-02 13:16:39",
"order_create_time": "2023-01-01 13:16:39"
},
"message": "Success",
"trace_id": "54e2983e66b738e6"
}

DYNAMIC_CODE

Payment Sequence

Request and Response Sample

  • Request
{
"version": "v1",
"service": "llpth.alipay.offline.pay",
"merchant_id": "142023010100009001",
"merchant_order_id": "ORDER_202301010001",
"order_amount": "3",
"order_currency": "THB",
"store_id": "142023010100009002",
"payment_type": "DYNAMIC_CODE",
"order_desc": "display your order info",
"order_info": "display your order info",
"notify_url": "https://www.lianlianpay.co.th/sample/callback",
"redirect_url": "https://global.lianlianpay.com",
"customer": {
"merchant_user_id": "USER_0001",
"full_name": "Bruce Lee"
}
}
  • Response
{
"code": 200000,
"data": {
"order_id": "122023010100160021",
"order_status": "WP",
"order_amount": "3.00",
"order_currency": "THB",
"payment_type": "DYNAMIC_CODE",
"due_date": "2023-01-02 10:33:38",
"order_create_time": "2023-01-01 10:33:38",
"link_url": "https://qr.alipay.com/bax09490mhigcb9s5jeg30b7"
},
"message": "Success",
"trace_id": "54e2983e66b738e6"
}

Alipay Online Payment

APP_PAYMENT

Payment Sequence

Request and Response Sample

  • Request
{
"version": "v1",
"service": "llpth.alipay.pay",
"merchant_id": "142023010100009001",
"merchant_order_id": "ORDER_202301010001",
"order_amount": "199",
"order_currency": "THB",
"payment_method": "APP_PAYMENT",
"order_info": "display your order info",
"customer": {
"full_name": "Bruce Lee",
"merchant_user_id": "USER_0001"
},
"products": [
{
"name": "hat",
"unit_price": "12.22",
"quantity": "1"
}
],
"notify_url": "https://www.lianlianpay.co.th/sample/callback",
"redirect_url": "https://www.lianlianpay.co.th/sample/redirect"
}
  • Response
{
"code": 200000,
"data": {
"merchant_id": "142023010100009001",
"merchant_order_id": "ORDER_202301010001",
"order_id": "122023010100160021",
"order_status": "WP",
"order_amount": "410.00",
"order_currency": "THB",
"due_date": "2023-02-01 14:01:29",
"create_time": "2023-01-01 14:01:29",
"req_data_to_channel": "_input_charset=\"UTF-8\"¤cy=\"THB\"&forex_biz=\"FP\"&it_b_pay=\"15m\"¬ify_url=\"https://callback.lianlianpay-inc.com/v2/alipay/payment/alipay_official/APP\"&out_trade_no=\"132023010118206702\"&partner=\"2088731392569904\"&payment_type=\"1\"&product_code=\"NEW_WAP_OVERSEAS_SELLER\"&secondary_merchant_id=\"142023010100623012\"&secondary_merchant_industry=\"5499\"&secondary_merchant_name=\"Lianlian Co.,Ltd\"&seller_id=\"2088732491469904\"&service=\"mobile.securitypay.pay\"&sign=\"UR3OfJpkZa3b9VF3xlWF7%2Fuc%2FJkfAuXkRKO1rZsBpQ%2FKpm7LtUo3%2FhqNsvptBd9GVY999QwANQK7r936SoUPMOCPLuEmlSOH%2FRXnKnBFiF3r4m%2BjU7gDnoKIy06bri7SUO5QHEJF2T04ro%2FTW8UTLcqrIRKI3WOl7A41lnbogxrWxH%2BWsO%2BFybjRwLhaE8AEX27ardA806MmNi%2F70a\"&sign_type=\"RSA\"&subject=\"Order(23092684267604)\"&total_fee=\"410.00\""
},
"message": "Success",
"trace_id": "54e2983e66b738e6"
}

WEB_PAYMENT

Payment Sequence

Request and Response Sample

  • Request
{
"version": "v1",
"service": "llpth.alipay.pay",
"merchant_id": "142023010100009001",
"merchant_order_id": "ORDER_202301010001",
"order_amount": "199",
"order_currency": "THB",
"payment_method": "WEB_PAYMENT",
"order_info": "display your order info",
"customer": {
"full_name": "Bruce Lee",
"merchant_user_id": "USER_0001"
},
"products": [
{
"name": "hat",
"unit_price": "12.22",
"quantity": "1"
}
],
"notify_url": "https://www.lianlianpay.co.th/sample/callback",
"redirect_url": "https://www.lianlianpay.co.th/sample/redirect"
}
  • Response
{
"code":200000,
"data": {
"merchant_id": "142023010100009001",
"merchant_order_id": "ORDER_202301010001",
"order_id": "122023010100160021",
"order_status": "WP",
"order_amount": "410.00",
"order_currency": "THB",
"due_date": "2023-02-01 14:01:29",
"create_time": "2023-01-01 14:01:29",
"link_url": "https://unitradeprod.alipay.com/exterfaceAssign.htm?secondary_merchant_industry=5137&_input_charset=UTF-8&subject=Shopify+payments+order+-+1445.00THB&sign=HuJV4GMKKAVqQu6A%2FQ4uNp2o0QMbYYKOyYhxSIPPH7W9bVaThyLlpExzDN5YE4Q2yx%2BGqtPG6SA4GnHjV7Jiub7G3PnYNRILD5uGrmsTWtArDD8jiBtKUL0SmohZZquE%2Fc71AAFWobAkDn8RR%2Fzeel10yiLo1upV5b%2FG1yON9Fi9CRvIv35GdJlAqpQRTjZFa8vMvSzfLmFLMQGMGcesLoQzXM77iw6mYBZXqi1UEA2vCNTTl21rc%2ByRRuqSA8juPyM2bxFG5fXTuoFkEIRN9NynAb1RBCXOMc7QYCyd0PUggq17PEEZ%2FUC6byNH6MpaWpuAjhzoZijIk7viJLhtw%3D%3D&notify_url=https%3A%2F%2Fcallback.lianlianpay-inc.com%2Fv1%2Falipay%2Fpayment%2Falipay_official%2FWEB&product_code=NEW_OVERSEAS_SELLER&alipay_exterface_invoke_assign_model=trade&alipay_exterface_invoke_assign_target=forexWelcome.vm&secondary_merchant_id=142023010102966087&out_trade_no=132023010118109776&partner=2088731392769904&alipay_exterface_invoke_assign_sign=bf_m_aceyvg_i_anb_xq1_rev_p_r9_o_cnp_ey_j_j%2F_s_v0_s_tckwqmr_nc6_v_z13_dd_v_v_a%3D%3D&timeout_rule=12h&service=create_forex_trade&supplier=test&total_fee=1445.00&secondary_merchant_name=Lianlian&return_url=https%3A%2F%2Fcallback.lianlianpay-inc.com%2Fv1%2Falipay%2Fpayment%2Fresult%2Falipay_official%2FWEB&currency=THB&sign_type=RSA&alipay_exterface_invoke_assign_client_ip=10.129.71.117"
},
"message": "Success",
"trace_id": "54e2983e66b738e6"
}

WAP_PAYMENT

Payment Sequence

Request and Response Sample

  • Request
{
"version": "v1",
"service": "llpth.alipay.pay",
"merchant_id": "142023010100009001",
"merchant_order_id": "ORDER_202301010001",
"order_amount": "199",
"order_currency": "THB",
"payment_method": "WAP_PAYMENT",
"order_info": "display your order info",
"customer": {
"full_name": "Bruce Lee",
"merchant_user_id": "USER_0001"
},
"products": [
{
"name": "hat",
"unit_price": "12.22",
"quantity": "1"
}
],
"notify_url": "https://www.lianlianpay.co.th/sample/callback",
"redirect_url": "https://www.lianlianpay.co.th/sample/redirect"
}
  • Response
{
"code": 200000,
"data": {
"merchant_id": "142023010100009001",
"merchant_order_id": "ORDER_202301010001",
"order_id": "122023010100160021",
"order_status": "WP",
"order_amount": "410.00",
"order_currency": "THB",
"due_date": "2023-02-01 14:01:29",
"create_time": "2023-01-01 14:01:29",
"link_url": "https://mclient.alipay.com/home/exterfaceAssign.htm?secondary_merchant_industry=5137&_input_charset=UTF-8&subject=Shopify+payments+order+-+1445.00THB&sign=HuJV4GMKKAVqQu6A%2FQ4uNp2o0QMbYYKOyYhxSIPPH7W9bVaThyLlpExzDN5YE4Q2yx%2BGqtPG6SA4GnHjV7Jiub7G3PnYNRILD5uGrmsTWtArDD8jiBtKUL0SmohZZquE%2Fc71AAFWobAkDn8RR%2Fzeel10yiLo1upV5b%2FG1yON9Fi9CRvIv35GdJlAqpQRTjZFa8vMvSzfLmFLMQGMGcesLoQzXM77iw6mYBZXqi1UEA2vCNTTl21rc%2ByRRuqSA8juPyM2bxFG5fXTuoFkEIRN9NynAb1RBCXOMc7QYCyd0PUggq17PEEZ%2FUC6byNH6MpaWpuAjhzoZijIk7viJLhtw%3D%3D&notify_url=https%3A%2F%2Fcallback.lianlianpay-inc.com%2Fv1%2Falipay%2Fpayment%2Falipay_official%2FWEB&product_code=NEW_OVERSEAS_SELLER&alipay_exterface_invoke_assign_model=trade&alipay_exterface_invoke_assign_target=forexWelcome.vm&secondary_merchant_id=142023010102966087&out_trade_no=132023010118109776&partner=2088731392769904&alipay_exterface_invoke_assign_sign=bf_m_aceyvg_i_anb_xq1_rev_p_r9_o_cnp_ey_j_j%2F_s_v0_s_tckwqmr_nc6_v_z13_dd_v_v_a%3D%3D&timeout_rule=12h&service=create_forex_trade&supplier=test&total_fee=1445.00&secondary_merchant_name=Lianlian&return_url=https%3A%2F%2Fcallback.lianlianpay-inc.com%2Fv1%2Falipay%2Fpayment%2Fresult%2Falipay_official%2FWEB&currency=THB&sign_type=RSA&alipay_exterface_invoke_assign_client_ip=10.129.71.117"
},
"message": "Success",
"trace_id": "54e2983e66b738e6"
}

Wechat Payment

DYNAMIC_CODE

Payment Sequence

Request and Response Sample

  • Request
{
"version": "v1",
"service": "llpth.wechatpay.pay",
"merchant_id": "142023010100009001",
"merchant_order_id": "ORDER_202301010001",
"order_amount": "169",
"order_currency": "THB",
"order_info": "display your order info",
"payment_method": "DYNAMIC_CODE",
"notify_url": "https://www.lianlianpay.co.th/sample/callback"
}
  • Response
{
"code": 200000,
"data": {
"order_id": "122023010100160021",
"order_status": "WP",
"order_amount": "100.00",
"order_currency": "THB",
"create_time": "2023-01-01 12:51:14",
"link_url": "weixin://wxpay/bizpayurl?pr=GSu0wILzz"
},
"message": "Success",
"trace_id": "54e2983e66b738e6"
}

MERCHANT_SCAN

Payment Sequence

Request and Response Sample

  • Request
{
"version": "v1",
"service": "llpth.wechatpay.pay",
"merchant_id": "142023010100009001",
"merchant_order_id": "ORDER_202301010001",
"order_amount": "176.00",
"order_currency": "THB",
"order_info": "display your order info",
"payment_method": "MERCHANT_SCAN",
"auth_code": "130990587353875588",
"notify_url": "https://www.lianlianpay.co.th/sample/callback"
}
  • Response
{
"code": 200000,
"data": {
"order_id": "122023010100160021",
"order_status": "WP",
"order_amount": "103.00",
"order_currency": "THB",
"create_time": "2023-01-01 15:36:20"
},
"message": "Success",
"trace_id": "54e2983e66b738e6"
}

INAPP_PAYMENT

Payment Sequence

Request and Response Sample

  • Request
{
"version": "v1",
"service": "llpth.wechatpay.pay",
"merchant_id": "142023010100009001",
"merchant_order_id": "ORDER_202301010001",
"order_amount": "344",
"order_currency": "THB",
"payment_method": "INAPP_PAYMENT",
"openid": "ocaX05PYkETywqz_unF9MYe3m53U",
"appid": "wx8c23b713feegh361",
"customer": {
"full_name": "Bruce Lee",
"merchant_user_id": "USER_0001"
},
"products": [
{
"name": "hat",
"unit_price": "344",
"quantity": "1"
}
],
"order_info": "display your order info",
"notify_url": "https://www.lianlianpay.co.th/sample/callback",
"redirect_url": "https://www.lianlianpay.co.th/sample/redirect"
}
  • Response
{
"code": 200000,
"data": {
"order_id": "122023010100160021",
"order_status": "WP",
"order_amount": "494.00",
"order_currency": "THB",
"create_time": "2023-01-01 15:44:45",
"pay_params": {
"timeStamp": "1695717886",
"package": "prepay_id=wx261644464041712af441690b579ef50000",
"paySign": "b0348bb7a6e958f61c5d3fc0f01feb6eee0ca7437b2518edda724f4ada0fa9e1",
"appId": "wx8c23b862feedf361",
"signType": "HMAC-SHA256",
"nonceStr": "20230101084446502"
}
},
"message": "Success",
"trace_id": "54e2983e66b738e6"
}

APP_PAYMENT

Payment Sequence

Request and Response Sample

  • Request
{
"version": "v1",
"service": "llpth.wechatpay.pay",
"merchant_id": "142023010100009001",
"merchant_order_id": "ORDER_202301010001",
"order_amount": "344",
"order_currency": "THB",
"payment_method": "APP_PAYMENT",
"appid": "wx8c23b713feegh361",
"customer": {
"full_name": "Bruce Lee",
"merchant_user_id": "USER_0001"
},
"products": [
{
"name": "hat",
"unit_price": "344",
"quantity": "1"
}
],
"order_info": "display your order info",
"notify_url": "https://www.lianlianpay.co.th/sample/callback",
"redirect_url": "https://www.lianlianpay.co.th/sample/redirect"
}
  • Response
{
"code": 200000,
"data": {
"order_id": "122023010100160021",
"order_status": "WP",
"order_amount": "794.00",
"order_currency": "THB",
"create_time": "2023-01-01 15:50:39",
"pay_params": {
"package": "Sign=WXPay",
"appid": "wx8522da19e74fcf88",
"sign": "260019ac3b95f4958b067ff293638a090a389c75d650a180b933c4be24fb6aaa",
"partnerid": "114476940",
"prepayid": "wx261650398937062ae376f83b0282030000",
"noncestr": "20230101085039983",
"timestamp": "1695718239"
}
},
"message": "Success",
"trace_id": "54e2983e66b738e6"
}

H5_PAYMENT

Payment Sequence

Request and Response Sample

  • Request
{
"version": "v1",
"service": "llpth.wechatpay.pay",
"merchant_id": "142023010100009001",
"merchant_order_id": "ORDER_202301010001",
"order_amount": "344",
"order_currency": "THB",
"payment_method": "H5_PAYMENT",
"order_info": "display your order info",
"customer": {
"full_name": "Bruce Lee",
"merchant_user_id": "USER_0001"
},
"products": [
{
"name": "hat",
"unit_price": "344",
"quantity": "1"
}
],
"client": {
"remote_ip": "60.191.76.226"
},
"notify_url": "https://www.lianlianpay.co.th/sample/callback",
"redirect_url": "https://www.lianlianpay.co.th/sample/redirect"
}
  • Response
{
"code": 200000,
"data": {
"order_id": "122023010100160021",
"order_status": "WP",
"order_amount": "600.00",
"order_currency": "THB",
"create_time": "2023-01-01 09:59:21",
"link_url": "https://wx.tenpay.com/cgi-bin/mmpayweb-bin/checkmweb?prepay_id=wx26105921570345484db80h818f5d8d0000&package=3638749784&redirect_url=https%3A%2F%2Fcheckout.lianlianpay.co.th%2Fin-payment%3Ftoken%3DeyJ0eXBlIjoiSldUIiwiYWxnIjoiSFMyNTYiLCJ0tXAiOiJKV1QifQ.eyJfbWVyY2hhbnRfaWQiOiIxNDIwMjMwODI0MDI5NjQxNTMiLCJfdHJhbnNfb3JkZXJfbm8iOiIxMjIwMjMwOTI2MjA5MTA4NDUiLCJpc3MiOiJzc28iLCJleHAiOjE2OTU2OTg5NjEsIl90cmFuc19zZXJpYWxfbm8iOiIxMjIwMjMIuTI2MjA5MTEwNDkifQ.cUkOZgdhVcjtx43MZGfdgZUDdsxRPlXPNczy1ntzZe8"
},
"message": "Success",
"trace_id": "54e2983e66b738e6"
}

QR Prompt Payment

THAI_QR

Payment Sequence

Step 1: QR code create sequence
Step 2: QR code payment sequence

Request and Response Sample

  • Request
{
"version": "v1",
"service": "llpth.thaiqr.pay",
"merchant_id": "142023010100009001",
"merchant_order_id": "ORDER_202301010001",
"order_amount": "344",
"order_currency": "THB",
"payment_method": "THAI_QR",
"order_desc": "display your order info",
"customer": {
"full_name": "Bruce Lee",
"merchant_user_id": "USER_0001"
},
"products": [
{
"name": "hat",
"unit_price": "344",
"quantity": "1"
}
],
"notify_url": "https://www.lianlianpay.co.th/sample/callback"
}
  • Response
{
"code": 200000,
"data": {
"merchant_id": "142023010100009001",
"merchant_order_id": "ORDER_202301010001",
"order_id": "122023010100160021",
"order_status": "WP",
"order_amount": "100.00",
"order_currency": "THB",
"qr_code": "iVBORw0KGgoAAAANSUhEUgAAATsAAAE7CAYAAACi3CbHAAAXxElEQVR42u3dCZQU1bnA8YYBFTCgLxAeTzSJvmNeFI4KSCQuGJEEl3f0IbwQjAw7IsiigoCCqBgVgVFZhlWTEWVfYp5oUAcUMCAgWwTZFxVQCTPADMzW/b17b3c10zAzMEv3VN361znfGZjpqq6uuvWre+t+fW8gEAiI16OkpazrlXVx02ePx2eIx2d30764qXzG47zbcDzLEWAHdmAHdmAHdmAHdmAHdmAHdmAHdmAHdmAHdmAHdmAHdmAHdmAHdmAHdmCXWOzctHgFrUQXGDcVejdd1G767Dbspw1OgB3YgR3YgR3YgR3YgR3YgR3YgR3YgR3YgR3YgR3YgR3YgR3YgR3YgR3YgZ2rsPNKvpybTpJXCq9Xcs1sx8CGz+eysgR2YAd2YAd2YAd2YAd2YAd2YAd2YAd2YAd2YAd2YAd2YAd2YAd2YAd2YAd2YGdrPqBXQPMKrjbkNCb6WIMd2IEd2IEd2IEd2IEd2IEd2IEd2IEd2IEd2IEd2IEd2IEd2IEd2IEd2IEd2IFdpV9kbiq8ts8k5aYbkp8RATuwAzuwAzuwAzuwAzuwAzuwAzuw4/oDO7ADO7ADO7ADO7ADO/5ip5Bd547KcNNx0PYWB7uQY7sAM7sAM7sAM7sAM7sAM7sAM7sAM7sAM7sAM7sAM7sAM7sAM7sAM7sAM7sHP70EJeueDdtPg5B8/PQ3RVQoAd2IEd2IEd2IEd2IEd2IEd2IEd2IEd2IEd2IEd2IEd2IEd2IEd2IEd2IGde7Bz0wVhw4nwCqBuOkceusiYecwd1zvYgR3YgR3YgR3YgR3YgR3YgR3YgR3YgR3YgR3YgR3YgR3YgR3YgR3YgR3YJRY72wuFV06SDe/nlfwuG27GNtw84vQZwA7swA7swA7swA7swA7swA7swA7swA7swA7swA7swA7swA7swA7swA7swK7CP8P/A5HGvYB4ADdWAAAAAElFTkSuQmCC",
"qr_code_expire_sec": "480",
"create_time": "2023-09-27 09:14:32"
},
"message": "Success",
"trace_id": "54e2983e66b738e6"
}

Mobile Banking Payment

KPLUS_NOTIFICATION

Payment Sequence

Request and Response Sample

  • Request
{
"version": "v1",
"service": "llpth.mobile.banking.pay",
"merchant_id": "142023010100009001",
"merchant_order_id": "ORDER_202301010001",
"order_amount": "344",
"order_currency": "THB",
"payment_method": "KPLUS_NOTIFICATION",
"order_desc": "display your order info",
"mobile_number": "0929195256",
"customer": {
"full_name": "Bruce Lee",
"merchant_user_id": "USER_0001"
},
"products": [
{
"name": "hat",
"unit_price": "344",
"quantity": "1"
}
],
"notify_url": "https://www.lianlianpay.co.th/sample/callback"
}
  • Response
{
"code": 200000,
"data": {
"order_id": "142023010100009001",
"order_status": "WP",
"order_amount": "200.00",
"order_currency": "THB",
"create_time": "2023-01-01 14:02:47"
},
"message": "Success",
"trace_id": "54e2983e66b738e6"
}

EASY_APP_BILL

Payment Sequence

Request and Response Sample

  • Request
{
"version": "v1",
"service": "llpth.mobile.banking.pay",
"merchant_id": "142023010100009001",
"merchant_order_id": "ORDER_202301010001",
"order_amount": "344",
"order_currency": "THB",
"payment_method": "EASY_APP_BILL",
"order_desc": "display your order info",
"app_callback_url": "https://www.lianlianpay.co.th/app/sample/callback",
"customer": {
"full_name": "Bruce Lee",
"merchant_user_id": "USER_0001"
},
"products": [
{
"name": "hat",
"unit_price": "344",
"quantity": "1"
}
],
"notify_url": "https://www.lianlianpay.co.th/sample/callback"
}
  • Response
{
"code": 200000,
"data": {
"order_id": "142023010100009001",
"order_status": "WP",
"order_amount": "75.00",
"order_currency": "THB",
"create_time": "2023-01-01 08:10:02",
"link_url": "scbeasy://payments/bill/id/c8372cf7-f241-4be4-b935-c5cea6a43dad"
},
"message": "Success",
"trace_id": "54e2983e66b738e6"
}

TrueMoney Payment

Payment Sequence

Request and Response Sample

  • Request
{
"version": "v1",
"service": "llpth.truemoney.pay",
"merchant_id": "142023010100009001",
"merchant_order_id": "ORDER_202301010001",
"order_amount": "344",
"order_currency": "THB",
"payment_method": "NORMAL_BALANCE_TM",
"order_desc": "display your order info",
"customer": {
"full_name": "Bruce Lee",
"merchant_user_id": "USER_0001"
},
"products": [
{
"name": "hat",
"unit_price": "344",
"quantity": "1"
}
],
"redirect_url": "https://www.lianlianpay.co.th/sample/redirect",
"notify_url": "https://www.lianlianpay.co.th/sample/callback"
}
  • Response
{
"code": 200000,
"message": "Success",
"data": {
"merchant_id": "142023010100009001",
"merchant_order_id": "ORDER_202301010001",
"order_id": "122023010100160021",
"order_status": "WP",
"order_amount": "10.00",
"order_currency": "THB",
"create_time": "2023-01-01 16:07:38",
"link_url": "https://tmn.app.link/commoncashier?deeplink=ascendmoney%3A%2F%2Fwallet.truemoney.co.th%2Fapp%2F660000000012%3Ftype%3Dcommoncashier%26method%3D4bbcc5c803e5f437ded3bfefcd555b7b",
"link_url_app": "https://tmn.app.link/commoncashier?deeplink=ascendmoney%3A%2F%2Fwallet.truemoney.co.th%2Fapp%2F660000000012%3Ftype%3Dcommoncashier%26method%3D4bbcc5c803e5f437ded3bfefcd555b7b",
"link_url_expire_sec": "180"
},
"trace_id": "54e2983e66b738e6"
}

Rabbit Line Payment

Payment Sequence

Request and Response Sample

  • Request
{
"version": "v1",
"service": "llpth.linepay.pay",
"merchant_id": "142023010100009001",
"merchant_order_id": "ORDER_202301010001",
"order_amount": "344",
"order_currency": "THB",
"payment_method": "DIGITAL_BALANCE",
"order_desc": "display your order info",
"customer": {
"full_name": "Bruce Lee",
"merchant_user_id": "USER_0001"
},
"products": [
{
"name": "hat",
"unit_price": "344",
"quantity": "1"
}
],
"redirect_url": "https://www.lianlianpay.co.th/sample/redirect",
"notify_url": "https://www.lianlianpay.co.th/sample/callback"
}
  • Response
{
"code": 200000,
"message": "Success",
"data": {
"merchant_id": "142023010100009001",
"merchant_order_id": "ORDER_202301010001",
"order_id": "122023010100160021",
"order_status": "WP",
"order_amount": "75.00",
"order_currency": "THB",
"create_time": "2023-01-21 15:18:29",
"link_url": "https://web-pay.line.me/web/payment/wait?transactionReserveId=NkllMHhVQS9wQzNr43d3dJaTUxWHlRZEZLUXBsaUNWY2hYQnRPQVBET2MxU3Rodk9qYk5sQUxOc056aVpMRg",
"link_url_app": "line://pay/payment/NkllMHhVQS9wQzNr43d3dJaTUxWHlRZEZLUXBsaUNWY2hYQnRPQVBET2MxU3Rodk9qYk5sQUxOc056aVpMRg",
"link_url_expire_sec": "1200"
},
"trace_id": "54e2983e66b738e6"
}

Shopee Payment

Payment Sequence

Request and Response Sample

  • Request
{
"version": "v1",
"service": "llpth.shopeepay.pay",
"merchant_id": "142023010100009001",
"merchant_order_id": "ORDER_202301010001",
"order_amount": "344",
"order_currency": "THB",
"payment_method": "NORMAL_BALANCE_SP",
"order_desc": "display your order info",
"customer": {
"full_name": "Bruce Lee",
"merchant_user_id": "USER_0001"
},
"products": [
{
"name": "hat",
"unit_price": "344",
"quantity": "1"
}
],
"redirect_url": "https://www.lianlianpay.co.th/sample/redirect",
"notify_url": "https://www.lianlianpay.co.th/sample/callback"
}
  • Response
{
"code": 200000,
"message": "Success",
"data": {
"merchant_id": "142023010100009001",
"merchant_order_id": "ORDER_202301010001",
"order_id": "122023010100160021",
"order_status": "WP",
"order_amount": "190.00",
"order_currency": "THB",
"create_time": "2023-01-01 15:04:48",
"link_url": "https://pay.airpay.in.th/h5pay/pay?type=start&app_id=11004257&key=jQ6T174304tfd519e9dc&medium_index=ck90280eccpkj2rv27tg&order_id=132023010118208269&order_key=aKTV_7_lWCnpHu7xtzw2sJJLKRxaBLqjVekCsUYY2hEtYFYPHaJx9qyPm98nvuLg6_RpeLHKltppWQ&return_url=aHR0cHM6Ly9jYWxsYmFjay5saWFubGlhbnBheS5jby50aC92MS9zaG9wZWVwYXkvcGF5bWVudC9yZXN1bHQvc2hvcGVlX3BheT9hbW91bnQ9MTkwMDAmY2xpZW50X2lkPTExMDAxMzU3z5JlZmVyZW5jZV9pZD0xMzIwMjMwOTI2MTgyMDgyNjkmcmVzdWx0X2NvZGU9MjA7lnNpZ25hdHVyZT1TVGR4THhSYktTVDZuNmVzSjIzck1EakRUblA1V2g0bWxMemhpRGNMRTA0JTNE&source=web&token=ck99165eccpkj2rv27tg",
"link_url_app": null,
"link_url_expire_sec": "1800"
},
"trace_id": "54e2983e66b738e6"
}

Paotang Payment

Payment Sequence

Request and Response Sample

  • Request
{
"version": "v1",
"service": "llpth.paotang.pay",
"merchant_id": "142023010100009001",
"merchant_order_id": "ORDER_202301010001",
"order_amount": "200",
"order_currency": "THB",
"payment_method": "DEEPLINK",
"order_desc": "display your order info",
"customer": {
"full_name": "Bruce Lee",
"merchant_user_id": "USER_0001"
},
"products": [
{
"name": "hat",
"unit_price": "200",
"quantity": "1"
}
],
"redirect_url": "https://www.lianlianpay.co.th/sample/redirect",
"notify_url": "https://www.lianlianpay.co.th/sample/callback"
}
  • Response
{
"code": 200000,
"message": "Success",
"data": {
"merchant_id": "142023010100009001",
"merchant_order_id": "ORDER_202301010001",
"order_id": "122023010100160021",
"order_status": "WP",
"order_amount": "200.00",
"order_currency": "THB",
"create_time": "2024-01-01 15:04:48",
"link_url": "https://file-paotang-uat.th-service.cco.in/DEEPLINK/paotang-external-deeplink.html?destination=pwp&txnRefId=POA-B9A4C769CC1316A7",
"link_url_app": "paotanguat://paotang.co.th/paotarng.scene.deeplink?destination=pwp&txnRefId=POA-B9A4C769CC1316A7",
},
"trace_id": "54e2983e66b738e6"
}