Payment API

The way to call this API is limited to HTML post request from client-side.The user will be redirected to Lianlian payment page.

Request Parameters and sample

Below is needed in the head of your HTML:

<meta http-equiv="content-type" content="text/html;charset=UTF-8">

Endpoint

https://payment.lianlianpay.com/payment/bankgateway.htm

Request Parameters

Name

Required

Type

Description

version

Required

String(6)

Fixed value, 1.0

charset_name

Required

String(18)

Encoding format of merchat website,support UTF-8(default),GBK,GB2312 and GB18030.

oid_partner

Required

String(18)

The unique identification assigned to the merchant. E.g. 201304121000001004

user_id

Required

String(32)

The unique identification assigned to the user in the merchant’s system

timestamp

Required

String(14)

The time when request is initialized. Format: yyyyMMddHHmmss, E.g. 20170801225714. The time difference between your server and LianLian server(UTC +8) should be no more than 30 mins

sign_type

Required

String(3)

RSA

sign

Required

String

Signature value

busi_partner

Required

String(6)

Fixed value. Virtual products, 101001; Physical products, 109001

no_order

Required

String(32)

Merchant order No.

dt_order

Required

String(14)

Merchant order date. Format: yyyyMMddHHmmss, E.g. 20170801225714

name_goods

Required

String(40)

Product name. E.g. Pen

info_order

Optional

String(255)

info_order will be sent back in asynchronous notification for parameters transmission

money_order

Required

String(12)

Merchant order amount, 2 decimal places are expected, in CNY

notify_url

Required

String(128)

Online url where asynchronous notification should be sent, E.g. http://www.lianlianpay.com/help/notify

url_return

Optional

String(128)

Online url, your customer will be redirected to url_return once they finished their payment

userreq_ip

Optional

String(32)

The IP address of your customer, used for anti-fraud purpose. Replace "." with "_", E.g. 122_11_37_211

url_order

Optional

String(255)

Online url of products

valid_order

Optional

Int

The valid period of no_order, in minute. The status of corresponding transaction will be set to "Closed" once its valid_order run out. Default: 10080 (7 days).

bank_code

Optional

String(18)

The bank short code of used card.When it's NOT null,the user will be redirected to corresponding online banking page from merchant page.

risk_item

Required

String

This parameter is used for payment risk control, all required parameters should be included in the value of risk_item in json format, refer to Payment Risk

pay_type

Optional

String

The payment method used in this transaction. 1, online banking payment (debit card) 8, online banking payment (credit card) 9, business online banking payment

Sample Request

Last updated