收藏
回答

wx.chooseWXPay微信支付问题

wx.chooseWXPay调起微信支付成功付款后,没有执行success函数,请问有人遇到过吗?

wx.chooseWXPay({
                                timestamp: payJson.timeStamp,
                                nonceStr: payJson.nonceStr,
                                package: payJson.package,
                                signType: payJson.signType,
                                paySign: payJson.paySign,
                                success: function (r) {
                                    alert('微信api:success')
                                    alert(r)
                                    this.$router.push({ name: 'Home'});
                                    // 支付成功后的回调函数
                                    if (r.errMsg == "chooseWXPay:ok") {
                                        alert('支付成功')
                                        this.$router.push({ name: 'Home'});
                                        //支付成功
                                        // _this.checkDetail(res.ordersNo);
                                         
                                    } else {
                                        alert('success支付失败')
                                        this.$router.push({ name: 'Home'});
                                        // _this.checkDetail(res.ordersNo);
                                        alert(r.errMsg,null);
                                    }
                                },
                                cancel: function(r) {
                                    alert('取消支付')
                                    this.$router.push({ name: 'Home'});
                                    //支付取消
                                    this.$route.push
                                    _this.checkDetail(res.ordersNo);
                                },
                                fail:function(r){
                                    alert('fail支付失败了')
                                    this.$router.push({ name: 'All_order_list'});
                                    //支付失败
                                }
                            });


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

1 个回答

  • 薛定谔de小白喵
    薛定谔de小白喵
    2019-07-12

    我也遇到了相同的问题,请问解决了吗,感觉会有1%左右的概率会出现

    2019-07-12
    赞同
    回复
登录 后发表内容