API Explanation
Request Type
POST
Request URI
/api/v1/pay/weixin/active-pay
Request
Parameter | Type | Required | Description | Remark |
---|---|---|---|---|
amount | String | Yes | Transaction Amount | cent is the unit, “100” means a dollar |
callbackURL | String | yes | Callback URL | Send notifications to this URL when an order is complete (Maximum length 255 English characters) |
remark | String | Yes | Remark | Remark(Maximum length with 128 English characters) |
Request Example:
{
"callbackURL": "https://your.callback.url",
"amount": "1000",
"remark": ""
}
Response
Parameter | Type | Description | Remark |
---|---|---|---|
payInfo | String | Payment Link | Used to generate payment QR codes on front-end pages |
paymentId | String | Payment ID |
Response Example:
{
"status": "SUCCESS",
"result": {
"payInfo": "weixin://wxpay/bizpayurl?pr=iSatxsszz",
"paymentId": "1677688845950853"
}
}
Payment Result
After the OTT Pay API server obtains the payment result from the payment channel, it will immediately send the payment result to the specified callbackURL. Of course, the merchant system can also actively query through Payment Status Query API.