Payment status detection can be realized through rotation training of this interface.
```javascript
WXAPI.payQuery(token, outTradeId)
```
+ token user login credentials
+ outTradeId payment order number, usually the order number starting with `ZF`
Return example:
```json
{
"code": 0,
"data": {
"dateAdd": "2021-12-04 16:42:13",
"dateUpdate": "2021-12-04 16:42:18",
"id": 995627,
"money": 0.01,
"nextAction": "{\"type\":0,\"id\":1230398}",
"orderNo": "ZF2112040551316024",
"payGate": "WXAPP",
"payGateStr": "WeChat Mini Program",
"payGateTradeId": "4200001117202112047821714994",
"remark": "Payment order: 1230398",
"status": 1,
"statusStr": "Success",
"uid": 1351478,
"userId": 951
},
"msg": "success"
}
```
+ status 0 Unpaid 1 Paid 2 Failed
+ money payment amount
+ payGateTradeId is the order number returned by the payment gateway