我瞎了。。。
h5v3支付失败,提示系统繁忙,请稍后再试?预下单参数: {'appid': 'wxb69b4a5cb7115948', 'mchid': '1605002074', 'description': '购买会员方案禾-1个月-5%', 'out_trade_no': 'O202104300067', 'notify_url': 'http://trial.partme.com/v1/wechat/callback', 'amount': {'total': 5.0}, 'scene_info': {'payer_client_ip': '171.217.40.37', 'h5_info': {'type': 'Wap'}}} 返回参数: {'h5_url': 'https://wx.tenpay.com/cgi-bin/mmpayweb-bin/checkmweb?prepay_id=wx30221707145420444ed4ea9e7df00c0000&package=1924557722'} 请帮忙看下为什么错误?
2021-05-06同上
h5微信支付时候显示系统繁忙,请稍后再试按照官方文档: public void CreateOrder() throws Exception{ //请求URL HttpPost httpPost = new HttpPost("https://api.mch.weixin.qq.com/v3/pay/transactions/h5"); // 请求body参数 String reqdata = "{" + "\"amount\": {" + "\"total\": 100," + "\"currency\": \"CNY\"" + "}," + "\"scene_info\": {" + "\"payer_client_ip\":\"14.23.150.211\"," + "\"h5_info\": {" + "\"type\": \"IOS\"" + "}}," + "\"mchid\": \"1900006891\"," + "\"description\": \"Image形象店-深圳腾大-QQ公仔\"," + "\"notify_url\": \"https://www.weixin.qq.com/wxpay/pay.php\"," + "\"out_trade_no\": \"1217752501201407033233388881\"," + "\"goods_tag\": \"WXG\"," + "\"appid\": \"wxdace645e0bc2c424\"" + "}"; StringEntity entity = new StringEntity(reqdata); entity.setContentType("application/json"); httpPost.setEntity(entity); httpPost.setHeader("Accept", "application/json"); //完成签名并执行请求 CloseableHttpResponse response = httpClient.execute(httpPost); try { int statusCode = response.getStatusLine().getStatusCode(); if (statusCode == 200) { System.out.println("success,return body = " + EntityUtils.toString(response.getEntity())); } else if (statusCode == 204) { System.out.println("success"); } else { System.out.println("failed,resp code = " + statusCode+ ",return body = " + EntityUtils.toString(response.getEntity())); throw new IOException("request failed"); } } finally { response.close(); } } 成功返回 success,return body = {"h5_url":"https://wx.tenpay.com/cgi-bin/mmpayweb-bin/checkmweb?prepay_id=wx282017151348384a8e06cf8500b9ab0000&package=3420926560"} 通过h5_url拉起微信支付客户端开始支付,而支付的时候等待一段时间后显示系统繁忙,请稍后再试!请问管理员这是什么错误呢?已经是你们最新官网开放文档来的,不是XML了。 [图片] [图片]
2021-04-30