微信支付问题

      设置安全域名,否则会提示商家参数格式有误,请联系商家解决
            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'}
            });
原文地址:https://www.cnblogs.com/tlfe/p/11377406.html