Payment Request with OTT Pay SDK
By Invoking of OTT Pay SDK, it will activate Alipay wallet automatically, and payment result will returned with Call-back data.
Last updated
By Invoking of OTT Pay SDK, it will activate Alipay wallet automatically, and payment result will returned with Call-back data.
Last updated
Call-Back Message Example(JSON Data):
Data Example(JSON Data, after decrypted):
Call back dataไธญ็ dataๆฏๅ ๅฏ่ฟ็ๆฐๆฎ๏ผๅ่appendix A่ฟ่ก่งฃๅฏๅค็ใ
Please reference our Android demo code for details.
Params Name
Description
Required
Notes
server_url
OTT Pay in App API URL
Y
amount
Transaction amount in cent
Y
string, "100" for 1.00 dollar.
bizType
Business type
Y
string, "ALIPAYONLINE"
merchant_id
Merchant ID in OTT PAY
Y
Provided by OTTPay
shop_id
OTT PAY store id๏ผoptional for future usage
N
String
operator_id
Operator ID from OTT PAY
Y
String , Provided by OTTPay
order_id
Your own order id
N
String, Your own order id
call_back_url
Call back URL
Y
Call back data from OTT Pay,
Params Name
Description
Required
Notes
rsp_code
Response code
Y
Refer to Appendix B
rsp_msg
Response message
Y
merchant_id
Merchant ID
Y
Merchant ID
data
Transaction Data Encrypted
y
refer to Data table below
finish_time
Payment time
Y
YYYYMMDDHHMMSS (Beijing time)
order_id
Order ID
Y
amount
Transaction amount
Y
String, "100" for 1.00 dollar
md5
Message Digest
Y
Params Name
Description
Required
Notes
finish_time
Payment time
Y
YYYYMMDDHHMMSS (Beijing time)
order_id
Order ID
Y
your
amount
Transaction amount
Y
string, "100" for 100 dollar.
tip
Tip Amount
Y
string, "100" for 100 dollar.
bizpay_order_id
order id from Acquirer
Y
Returned by the Payment Service Provider (e.g. WeChat Pay, Alipay)
merchant_id
Merchant ID
Y
Provided by OTT Pay