Passive Payment is used for cashier terminals which can scan BarCode or QRCode. Shop staff input the payment amount and ask customers for their payment code, then system send price and payment code to server and finish the payment. Retail Passive Payment now support Alipay and WeChat Pay, and UnionPay
Retail Active Payment is used for cashier terminals which cannot scan Barcode or QRCode. Get the Code url after create the order, convert this url to a QRCode and ask customers use their app to scan this QRCode then finish the payment. Retail Active Payment now support Alipay, WeChat
☑️Request Message Parameters(JSON Format)
Params Name
Description
Required
Notes
action
Action name
Y
ACTIVEPAY
version
Version number
Y
1.0
merchant_id
Merchant ID
Y
terminal_no
terminal_no
N
operator_id
Operator ID
N
Operator ID provided by OTTPay
data
Encrypted Transaction Data
Y
See "Data" table below
md5
Message Digest
Y
✅ Data(JSON Data, to be encrypted):
Params Name
Description
Required
Notes
order_id
Order ID
N
This ID could be generated by customized rules in client’s code, if not passed, it also could be generated in the background system by default.(您可以自定义订单id 规则,如果不传该参数,
订单id 将按系统规则自动生成)
operator_id
Operator ID
Y
Operator ID provided by OTTPay
amount
Transaction Amount
Y
String, "100" for 1.00 dollar.
tip
Tip
N
String, "100" for 1.00 dollar.
biz_type
Message Digest
Y
ALIPAY,
WECHATPAY,
UNIONPAY
call_back_url
Call back URL
Y
☑️Response Message Parameter
Params Name
Description
Required
Notes
rsp_code
Response code
Y
rsp_msg
Response message
Y
data
Encrypted Data
Y
See "Data" table below
md5
Message Digest
Y
✅ Transaction Data(JSON format, After decrypted)
Params Name
Description
Required
Notes
code_url
QR code URL
Y
For generating payment QR Code
order_id
Order ID
Y
☑️Call-Back Message Data
Params Name
Description
Required
Notes
rsp_code
Response code
Y
rsp_msg
Response message
Y
merchant_id
Merchant ID
Y
data
Encrypted Transaction Data
Y
See "Data" table below
md5
Message Digest
Y
▶️Call-Back Message Example(JSON Data):
✅ Transaction Data (JSON format, after decrypted)
Params Name
Description
Required
Notes
finish_time
Payment time
Y
YYYYMMDDHHMMSS (Beijing time)
order_id
Order ID
Y
amount
Transaction amount
Y
String, "100" for 1.00 dollar.
tip
tip amount
N
String, "100" for 1.00 dollar.
bizpay_order_id
order id from Acquirer
Y
Returned by the Payment Service Provider (e.g. WeChat Pay, Alipay, UnionPay)