Loading…

Offline purchase order

```javascript WXAPI.payBillV2({ token: '000', shopId: 123, Money: 900 }) ``` + token current user login credentials + shopId ID of the store where the order is placed + money The amount of this consumption (the amount before the discount, the system will automatically calculate the discount) + calculate This parameter does not need to be passed. If true is passed, it will only simulate the payment and return the remaining amount payable after the purchase discount, and will not actually pay the order. + pwd If the system is set to require a transaction password, the user's transaction password must be passed here. + smsCode If the system sets that consumption must pass SMS verification code verification, then the content of the SMS verification code must be passed in + ["Change Transaction Password"](https://www.yuque.com/apifm/nu0f75/gu3wb1xrtbgptdf0) Simulated buy order returns: ```json { "code": 0, "data": { "realMoney": 1 }, "msg": "success" } ``` Real purchase order returns: ```json { "code": 0, "data": { "amount": 1, "balance": 18.2, "behavior": 1, "freeze": 1, "id": 1371891, "remark": "Pay online, spend 1 yuan", "type": 8, "typeStr": "Buy order", "uid": 2017654, "userId": 951 }, "msg": "success" } ``` + amount actual payment amount + balance user remaining balance + freeze user’s remaining frozen funds