It is generally used on PC web pages or desktop application software to generate a QR code, allowing users to scan the code using WeChat to complete payment.
```javascript
WXAPI.wxpayApp({
token: '000',
appid: '1234',
money: 0.01,
remark: 'Preferential payment: 0.01',
payName: 'Preferential payment'
})
```
+ token login credentials
+ appid The appID of the APP registered on the WeChat open platform
+ money payment amount
+ payName The purchase name displayed on the payment interface
+ remark remark information will be recorded in the remark field in the background payment record. It does not need to be passed.
+ nextAction After the payment is successful, the next operation that needs to be performed does not need to be passed.
+ shopId the payment store ID, optional
["Detailed explanation of nextAction parameter usage"](https://www.yuque.com/apifm/doc/aetmlb)
Return example:
```json
{
"code": 0,
"data": {
"package": "Sign=WXPay",
"appid": "wx9b04553fd8c7b9c3",
"sign": "794A2F5F94EDBC99138CB16C96789920",
"partnerid": "1418156202",
"prepayid": "wx211502534830524217d619874a2bc70000",
"noncestr": "GCqWF95M0Z6EkFlroEdIBSyplewLzp",
"timestamp": "1645426973429"
},
"msg": "success"
}
```
After receiving the interface return, use the content of `data` to activate online payment according to the relevant app payment SDK method.