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
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
Data in Call back data in encrypted, refer to appendix A for decryption.
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.