```javascript
WXAPI.wxpay({
token: '000',
money: 0.01,
remark: 'Preferential payment: 0.01',
payName: 'Preferential payment'
})
```
+ token login credentials
+ 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": {
"timeStamp": "1639301968360",
"outTradeId": "ZF2112122009197309",
"package": "prepay_id=wx121739282777950d4a4f7f0af016300000",
"paySign": "E3BD35F75CC02825F269D78B7BD6526E",
"appid": "wxa46b09d413fbcaff",
"sign": "E3BD35F75CC02825F269D78B7BD6526E",
"signType": "MD5",
"prepayId": "wx121739282777950d4a4f7f0af016300000",
"nonceStr": "DJe3ZmjvsJPBiVLgLY18OUjbUZ7lTk"
},
"msg": "success"
}
```
Use the mini program interface to activate WeChat payment:
["Official Documentation Instructions for Mini Programs"](https://developers.weixin.qq.com/miniprogram/dev/api/payment/wx.requestPayment.html)
```javascript
wx.requestPayment({
timeStamp: '',
nonceStr: '',
package: '',
signType: '',
paySign: '',
success (res) { },
fail (res) { }
})
```
# apifm service provider payment
The service provider referred to here is the WeChat payment you opened in the "apifm". If your WeChat payment is opened by another service provider, you cannot use this interface for payment temporarily.
```javascript
WXAPI.wxpayFWS({
...
})
```
# Payment by other WeChat service providers
## Scan
```javascript
WXAPI.wxpaySaobei({
...
})
```
# Cross-border payment
## Fomo payment
```javascript
WXAPI.wxpayFOMO({
...
})
```
## Wepayez
```javascript
WXAPI.wxpayWepayez({
...
})
```
## Xpert
```javascript
WXAPI.wxpayxpert({
...
})
```
## Hello now
```javascript
WXAPI.wxpayIPaynow({
...
})
```
## Airwallex
```javascript
WXAPI.wxpayAirwallex({
...
})
```