收藏
回答

mac 示例代码错误?

wx.requestVirtualPayment(Object object)

示例代码:wx.requestMidasPaymentWxaItem({
    signData: '{"offerId":"123","buyQuantity":1,"env":0,"currencyType":"CNY","platform":"android","productId":"testproductId","goodsPrice":10,"outTradeNo":"xxxxxx","attach":"testdata"}',
    paySig: 'd0b8bbccbe109b11549bcfd6602b08711f46600965253a949cd6a2b895152f9d',
    signature: 'd0b8bbccbe109b11549bcfd6602b08711f46600965253a949cd6a2b895152f9d',
    mode: 'short_series_goods',
    success(res) {
        console.log('pay', res);
    },
    fail({
        errMsg,
        errCode
    }) {
        console.error(errMsg, errCode)
    }
    })


回答关注问题邀请回答
收藏
登录 后发表内容