Payment Request with WeChat Pay
For WeChat Pay on PC-Browser
✅ API Request Parameters(HTTP-Request-Body )
Params Name | Description | Required | Notes |
action | Action name (Constant Value) | Y | "ACTIVEPAY" |
version | Version number | Y | "1.0" |
merchant_id | Merchant ID | Y | Provided by OTT Pay |
data | Encrypted Transaction Data | Y | See "Data" table below |
md5 | Message Digest | Y |
☑️ Request Example(JSON Data):
☑️ Data(JSON Data, to be encrypted):
Params Name | Description | Required | Notes |
order_id | Order ID | N | OrderID could be generated by client's code, or generated by OTTPay as default |
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 | "WECHATPAY" |
call_back_url | Call back URL | Y |
☑️ Data Example(JSON Data):
✅ API Response Parameters(HTTP-Response-Body)
Params Name | Description | Required | Notes |
rsp_code | Response code | Y | refer to Appendix B |
rsp_msg | Response message | Y | |
data | Encrypted Data | Y | See "Data" table below |
md5 | Message Digest | Y |
☑️ Response Example(JSON Data):
☑️ Transaction Data(JSON format, After decrypted)
Params Name | Description | Required | Notes |
bizpay_order_id | order id from Acquirer | Y | Returned by the Payment Service Provider (e.g. WeChat Pay, Alipay) |
QR code URL | Y | For generating payment QR Code | |
order_id | Order ID | Y |
☑️ Data Example(JSON Data, after decrypted):
✅ API Call Back (HTTP-POST)
Once API server finished the request process, it will send back process status to specified URL which been set up as field of 'call_back_url' within above API request parameters.
☑️Message Payload Parameters Level (HTTP-Response-Body)
Params Name | Description | Required | Notes |
rsp_code | Response code | Y | refer to Appendix B |
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 |
merchant_id | Merchant ID | Y | Provided by OTT Pay |
☑️ Data Example(JSON Data, after decrypted):
Last updated