首頁  >  問答  >  主體

微信小程式支付調起失敗

我小程式前端直接調起付款功能失敗 :給我返回   請在微信客戶端打開連接,難道用小程式開發者工具不可以嗎  打開這個連接嗎

四个猪蹄四个猪蹄2284 天前2019

全部回覆(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
  • 取消回覆