收藏
回答

IOS 小程序中内嵌的h5中通过wx.chooseInvoice API唤起为啥失败?

已经在config中注册成功

调用checkJsApi以后是成功的

wx.ready(() => {
    wx.checkJsApi({
      jsApiList: ['chooseInvoice'],
      success() {
            // 这里传递的参数和config注册接口填写的参数一致
        console.log(that.$store.state.timestamp, that.$store.state.nonceStr);
        try {
          wx.invoke(
            'chooseInvoice',
            {
              timestamp: that.$store.state.timestamp,
              nonceStr: that.$store.state.nonceStr,
            },
            (res) => {
              console.log('chooseInvoice:', JSON.stringify(res));
            },
          );
        } catch (err) {
          console


但是唤起的时候失败


这是为什么?是公众号需要线下配置么?



回答关注问题邀请回答
收藏

1 个回答

  • 祝你爆炸
    祝你爆炸
    2023-02-17

    大佬,解决了吗

    2023-02-17
    有用
    回复
登录 后发表内容