WeChat mini program payment failed to activate
四个猪蹄
四个猪蹄 2018-06-21 15:10:26
0
8
2106

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?

四个猪蹄
四个猪蹄

reply all(2)
无忌哥哥

Just use WeChat on your mobile phone to test.

  • reply The same thing happens when I open it on the WeChat mobile phone and it gets 404 Not Found.
    四个猪蹄 author 2018-06-21 17:19:44
  • reply 404 means the request page is missing, right?
    无忌哥哥 author 2018-06-21 17:28:51
  • reply Now I don’t know what’s going on, I just can’t get up
    四个猪蹄 author 2018-06-21 17:39:24
  • reply 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); } }) } });
    四个猪蹄 author 2018-06-21 17:41:35
  • reply VM1947 appservice:1038 POST http://localhost/zhifu/payfee.php net::ERR_CONNECTION_REFUSED What is wrong with this?
    四个猪蹄 author 2018-06-21 18:02:05
  • reply It's the same thing. Is there something wrong with my payment setup?
    四个猪蹄 author 2018-06-22 08:48:59
四个猪蹄

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template