收藏
回答

requestPayment:fail unimplemented 是什么原因导致的?

appId":"wxef46c19e04e56f44",

"timeStamp":"1625705434",

"nonceStr":"LJAqgvQkiZeXwQ3GVI7SZlkk4tD9pGag",

"package":"prepay_id=wx08085034255386e025951b536f6e7c0000",

"signType":"MD5",


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

2 个回答

  • 丙赟
    丙赟
    2021-07-12

    这几天出现好几次这个错误了,有人给解答一下吗?

    2021-07-12
    有用
    回复 1
    • 疯狂的小辣椒
      疯狂的小辣椒
      2021-07-14
      麻烦提供下完整的接口返回的信息
      2021-07-14
      回复
  • 疯狂的小辣椒
    疯狂的小辣椒
    2021-07-08

    你好,麻烦复制粘贴下完整代码和日志。

    2021-07-08
    有用
    回复 3
    • 丙赟
      丙赟
      2021-07-09
      代码如下,不是必然出现,偶尔会出现一两次
      2021-07-09
      回复
    • 丙赟
      丙赟
      2021-07-09
      var pay = {


                      timeStamp: result.timeStamp, // 支付签名时间戳,注意微信jssdk中的所有使用timestamp字段均为小写。但最新版的支付后台生成签名使用的timeStamp字段名需大写其中的S字符


                      nonceStr: result.nonceStr, // 支付签名随机串,不长于 32 位


                      package: result.package, // 统一支付接口返回的prepay_id参数值,提交格式如:prepay_id=***)


                      signType: result.signType, // 签名方式,默认为'SHA1',使用新版支付需传入'MD5'


                      paySign: result.paySign, // 支付签名


                      success: function (res) {


                          // 支付成功后的回调函数


                          self.resolve(result);


                      },


                      fail: function(res){


                          if (res.errMsg == "requestPayment:fail cancel") {


                              self.reject(new Error("支付取消"));


                          } else {


                              // 支付失败回调函数


                              console.error("支付失败:" + JSON.stringify(res))


                              self.reject(new Error("支付失败"));


                          }


                      }


                  };


                  wx.requestPayment(pay);
      2021-07-09
      回复
    • 丙赟
      丙赟
      2021-07-09
      https://usr//app-service.js:13187:2180
      https://lib/WASubContext.js:2:55265
      r@https://lib/WASubContext.js:2:32365
      https://lib/WASubContext.js:2:42182
      I@https://lib/WASubContext.js:2:41907
      https://lib/WASubContext.js:2:41945
      l@https://lib/WASubContext.js:2:110827
      https://lib/WASubContext.js:2:91718
      https://lib/WASubContext.js:2:103993
      u@https://lib/WAServiceMainContext.js:2:116864
      https://lib/WAServiceMainContext.js:2:109511
      2021-07-09
      回复
登录 后发表内容