Apply API
This API is used to apply Exchange Payment request, create corresponding transaction object in LianLian's system and send SMS verification code.
Request
Endpoint
Direct APIs have an additional requirement which involves our payment risk team and due diligence team. You need to contact your business development to obtain the access.
Request Parameters
Name
Required
Type
Description
api_version
Required
String(6)
Fixed value, 1.0
sign_type
Required
String(3)
RSA
sign
Required
String
time_stamp
Required
String(14)
The time when request is initialized. Format: yyyyMMddHHmmss, E.g. 20170801225714. The deviation can NOT exceed 30 minutes between your server and LianLian's server(GMT +8).
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
platform
Optional
String(32)
platform
is used for sharing user info between multiple oid_partner
, this requires additional settings from LianLian side
busi_partner
Required
String(6)
Fixed value. Virtual products, 101001
; Physical products, 109001
no_order
Required
String(32)
Merchant transaction No.
dt_order
Required
String(14)
The date when the transaction is initialized. 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 synchronous or asynchronous notification for parameters transmission
notify_url
Required
String(128)
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).
risk_item
Required
String
pay_type
Required
String
M, Easy payment - Debit card N, Easy payment - Credit card D, Authenticate Payment
currency_order
Required
String(3)
money_order
Required
String(12)
Merchant order amount, range: 0.01 ~ 100,000,000.00, 2 decimal places are expected, in the currency of currency_order
currency_settle
Required
String(3)
The settle currency of transaction. Currently currency_settle
must be same with currency_order
vali_date
Optional
String
The expire date of credit card. Required for credit card
cvv2
Optional
String
The CVV/CVC2 of credit card. Required for credit card
id_type
Optional
String(1)
0, ID card 2, Passport 3, Military Officer Certificate 4, Hong Kong-Macau laissez-passer 6, Mainland travel permit for Taiwan residents 9, Police Officer card X, other certificates
id_no
Optional
String
The number of User's ID card. The length need to be either 15 or 18
acct_name
Required
String
The name of payer, in Chinese
card_no
Required
String
User's card number
bind_mob
Required
String
User's phone number, currently only support China domestic number.
no_agree
Optional
String(32)
id_no
,acct_name
,id_type
,card_no
are ignored ifno_agree
is present.
Sample Request
Response
The response of this API is possible to include the payment result directly when your account has No SMS Verification Flow setup, for more details, please contact our technical support.
Parameters
Name
Required
Type
Description
ret_code
Required
String(4)
ret_msg
Required
String(100)
Return message, description of ret_code
, in Chinese
The following parameters are returned only when ret_code=0000
:
Name
Required
Type
Description
oid_partner
Required
String(18)
The unique identification assigned to the merchant. E.g. 201304121000001004
sign_type
Required
String(3)
Fixed value, RSA
sign
Required
String
no_order
Required
String(32)
Merchant transaction No.
dt_order
Required
String(14)
The date when the transaction is initialized. Format: yyyyMMddHHmmss, E.g. 20170801225714
oid_paybill
Optional
String(18)
Unique transaction No. in LianLian system. E.g. 2011030900001098. Returned when the transaction object is created successfully.
currency_order
Required
String(3)
money_order
Required
String(12)
Merchant transaction amount, range: 0.01 ~ 100,000,000.00, 2 decimal places are expected
result_pay
Optional
String
Payment result. SUCCESS - Payment proceed successfully PROCESSING - Payment is processing. Return only when No SMS Verification Flow is setup
token
Optional
String
The following parameters are returned only when result_pay=SUCCESS
:
Name
Required
Type
Description
settle_date
Required
String(8)
Format YYYYMMDD.
info_order
Optional
String(255)
Returns when info_order
is sent in API requests
pay_type
Required
String(1)
The pay type used in current transaction.
currency_settle
Required
String(3)
The settle currency of transaction
money_settle
Required
String(12)
The settle amount of transaction
currency_pay
Required
String(3)
money_pay
Required
String(12)
The amount of which the payer payed
exchange_rate
Required
String
The exchange rate of current transaction
no_agree
Optional
String(16)
Sample Response
Below is a sample response without No SMS Verification Flow when ret_code=0000
.
Last updated