# 使用余额支付
```javascript
WXAPI.blindBoxFriendsPay({
token: '000'
})
```
+ token 当前用户登录凭证
+ id 盲盒ID
```json
{"code":0,"msg":"success"}
```
# 在线支付
[**《nextAction 参数使用详解》**](https://www.yuque.com/apifm/doc/aetmlb)
调用任何一个在线支付接口, nextAction 参数传:
```json
{type:22, boxId: 10}
```
+ boxId 改为盲盒id 即可