以文本方式查看主题 - Foxtable(狐表) (http://foxtable.com/bbs/index.asp) -- 专家坐堂 (http://foxtable.com/bbs/list.asp?boardid=2) ---- 已解决微信支付V3 (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=184293) |
||||
-- 作者:tianhao0817 -- 发布时间:2022/12/1 15:17:00 -- 已解决微信支付V3 麻烦老师看一下为什么这个代码执行了要报错,获取不到prepay_id Dim jo As New JObject jo("mchid") = 1488726918 jo("out_trade_no") = Rand.NextString(32) jo("appid") = "wxa7154bc4751eddet" jo("description") = "aabbcccceee" jo("notify_url") = "http://5174p4o694.wicp.vip/wx_notifyurl.htm" jo("amount") = New JObject jo("amount")("total") = 1 jo("amount")("currency") = "CNY" jo("payer") = New JObject jo("payer")("openid") = "ofRouwuQCfP7X1CsOo9-a93Ozdrw" Dim URL As String = "https://api.mch.weixin.qq.com/v3/pay/transactions/jsapi" Dim hc As New HttpClient(URL) hc.Content = jo.ToString() jo = JObject.Parse(hc.GetData()) MessageBox.Show(jo.ToString) [此贴子已经被作者于2022/12/16 16:46:21编辑过]
|
||||
-- 作者:有点蓝 -- 发布时间:2022/12/1 15:22:00 -- 提交的数据参数不正确
|
||||
-- 作者:tianhao0817 -- 发布时间:2022/12/1 15:30:00 -- { "mchid": 1488726918, "out_trade_no": "b49aa50622f24b2abd6a8c0064df7449", "appid": "wxa7154bc4751eddex", "description": "aabbcccceee", "notify_url": "http://5174p4o694.wicp.vip/wx_notifyurl.htm", "amount": { "total": 1, "currency": "CNY" }, "payer": { "openid": "ofRouwl_aRCGFTkhxeVECkQmzd8g" } } 提交的是这串,不会有错的啊
[此贴子已经被作者于2022/12/16 16:45:50编辑过]
|
||||
-- 作者:有点蓝 -- 发布时间:2022/12/1 15:48:00 -- 这个我就不清楚了,反正对方返回的提示就是这样。或者咨询一下对方客服 |
||||
-- 作者:tianhao0817 -- 发布时间:2022/12/16 16:42:00 -- 谢谢老师,已搞定微信支付V3了 |