Record of using balance to pay for pictures purchased
SDK apifmDevelopment reference
```javascript
WXAPI.photoPay({
token: '000'
})
```
+ token current user login credentials
+ id purchase record id
```json
{
"code": 0,
"msg": "success"
}
```
If the available balance is insufficient, the following will be returned:
```json
{
"code": 20002,
"msg": "The user's available balance is insufficient",
"data": 1
}
```
+ The value of data is the amount that still needs to be paid online. The payment can be completed only after it is replenished. The online payment interface can be opened by changing the value.
Follow the instructions of ["Detailed Explanation of NextAction Parameter Usage"] (https://www.yuque.com/apifm/doc/aetmlb),
```json
{type:11, id:1234}
```
Pass the fixed 11 for type, and pass the purchase record id for id.