search

Home  >  Q&A  >  body text

WeChat mini program payment failed to activate

My mini program front-end failed to directly activate the payment function: return to me. Please open the connection on the WeChat client. Isn’t it possible to use the mini program developer tools? Open this connection?

四个猪蹄四个猪蹄2426 days ago2152

reply all(8)I'll reply

  • 无忌哥哥

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

    Just use WeChat on your mobile phone to test.

    reply
    0
  • 四个猪蹄

    The same thing happens when I open it on the WeChat mobile phone and it gets 404 Not Found.

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

    404 means the request page is missing, right?

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

    Now I don’t know what’s going on, I just can’t get up

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

    The front-end request is written like this, but there is a problem. I don’t know what is wrong. wx.request({ url: 'http://localhost/index.php', method: "POST", data: { total_fee: total_fee, code: code, }, header: { 'content-type': 'application/x-www-form-urlencoded' //Default value }, success: function (res) { //Data returned by the backend 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: 'Payment successful', 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 What is wrong with this?

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

    It's the same thing. Is there something wrong with my payment setup?

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

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

    Could it be that I made a mistake in setting up the payment? ? ?

    reply
    2
  • Cancelreply