小程序支付提示 : 支付验证签名失败"

浏览:2759 发布日期:2018/11/26 分类:ThinkPHP5专区 关键字: 微信支付
使用的 easywechat 小程序支付提示支付签名失败。
easywechat 统一下单接口正常返回 prepay_id success: (res) => {
                console.log(res)
                wx.requestPayment({
                    appid: res.appid,
                    timeStamp: String(new Date().getTime() / 1000),
                    nonceStr: res.nonce_str,
                    package: 'prepay_id=' + res.prepay_id,
                    signType: 'MD5',
                    paySign: res.sign,
                    success(res) {
                        console.log('调用支付接口成功', res)
                    },
                    fail(res) {
                        console.log('调用支付接口失败', res)
                    }
                })
            }
求大神指点下什么原因
已经解决
最佳答案
评论( 相关
后面还有条评论,点击查看>>