微信小程序支付调起失败
四个猪蹄
四个猪蹄 2018-06-21 15:10:26
0
8
2015

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

四个猪蹄
四个猪蹄

全部回复(2)
无忌哥哥

直接用手机微信测试呢。

  • 回复 也一样的 在手机微信端打开就是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
四个猪蹄

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

热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责声明 Sitemap
PHP中文网:公益在线PHP培训,帮助PHP学习者快速成长!