微信支付问题

      设置安全域名,否则会提示商家参数格式有误,请联系商家解决
            var self = plus.webview.currentWebview();
            // res.data.url  后台返回的支付链接
            // wxpay 窗口标识
        //https://xxxx.xxxxx.cn是当前请求支付接口的域名
        var payView = plus.webview.create(res.data.url, 'wxpay', {
              top: '1000px',bottom: '1000px',
              additionalHttpHeaders:{referer:'http://xxxx.xxxxx.cn'}
            });
posted @ 2019-08-19 15:29  龙卷风吹毁停车场  阅读(187)  评论(0编辑  收藏  举报