登录

微信小程序支付调起失败

我小程序前端直接调起支付功能失败 :给我返回   请在微信客户端打开连接,难道用小程序开发者工具不可以吗  打开这个连接吗

# PHP
四个猪蹄 四个猪蹄 2128 天前 1874 次浏览

全部回复(8) 我要回复

  • 无忌哥哥

    无忌哥哥2018-06-21 16:43:18

    直接用手机微信测试呢。

    回复
    0
  • 四个猪蹄

    也一样的 在手机微信端打开就是404找不到

    四个猪蹄 · 2018-06-21 17:19:44
    无忌哥哥

    404 是少了请求页面吧

    无忌哥哥 · 2018-06-21 17:28:51
    四个猪蹄

    现现在我也不知道怎么回事 就是起不来

    四个猪蹄 · 2018-06-21 17:39:24
    四个猪蹄

    前端 请求 是这样写的 但是有问题 不知道哪里不对 wx.request({ url: 'http://localhost/index.php', method: "POST", data: { total_fee: total_fee, code: code, }, header: { 'content-type': 'application/x-www-form-urlencoded' // 默认值 }, success: function (res) { //后端返回的数据 var data = res.data; console.log(data); console.log(data["timeStamp"]); wx.requestPayment({ timeStamp: data['timeStamp'], nonceStr: data['nonceStr'], package: data['package'], signType: data['signType'], paySign: data['paySign'], success: function (res) { wx.showModal({ title: '支付成功', content: '', }) }, fail: function (res) { console.log(res); } }) } });

    四个猪蹄 · 2018-06-21 17:41:35
    四个猪蹄

    VM1947 appservice:1038 POST http://localhost/zhifu/payfee.php net::ERR_CONNECTION_REFUSED 这个是什么错

    四个猪蹄 · 2018-06-21 18:02:05
    四个猪蹄

    也是一样的 是不是我调起支付有问题啊

    四个猪蹄 · 2018-06-22 08:48:59
  • 四个猪蹄

    四个猪蹄2018-06-21 15:12:39

    难到是我调起支付弄错了???

    回复
    2
  • 取消 回复 发送