- 商户支付权限被取消?
刚刚做的微信支付V3版本的但是测的时候突然就报错了说商户支付权限被取消是怎么回事需要商户号的话可以提供请帮帮忙看看[图片]
2022-03-18 - 我在使用微信的【服务端】APP下单的时候一直报错空指针是怎么回事呀?
[图片][图片] 就是在划红线的地方报错的空指针的
2022-03-16 - 我在使用微信的【服务端】APP下单的示例代码的时候一直报错?
@RequestMapping("/ceshi") public String ceshi() throws IOException { CloseableHttpClient httpClient = HttpClients.createDefault(); //请求URL HttpPost httpPost = new HttpPost("https://api.mch.weixin.qq.com/v3/pay/transactions/app"); // 请求body参数 String reqdata = "{" + "\"time_expire\":\"2018-06-08T10:34:56+08:00\"," + "\"amount\": {" + "\"total\":1," + "\"currency\":\"CNY\"" + "}," + "\"mchid\":\"56168498\"," + "\"description\":\"Image形象店-深圳腾大-QQ公仔\"," + "\"notify_url\":\"https://www.weixin.qq.com/wxpay/pay.php\"," + "\"out_trade_no\":\"1217752501201407033233368018\"," + "\"goods_tag\":\"WXG\"," + "\"appid\":\"dwdawdqwdaxcw\"," + "\"attach\":\"韩测试微信下单\"," + "\"detail\": {" + "\"invoice_id\":\"wx123\"," + "\"goods_detail\": [" + "{" + "\"goods_name\":\"iPhoneX 256G\"," + "\"wechatpay_goods_id\":\"1001\"," + "\"quantity\":1," + "\"merchant_goods_id\":\"123456123\"," + "\"unit_price\":828800" + "}," + "{" + "\"goods_name\":\"iPhoneX 256G\"," + "\"wechatpay_goods_id\":\"1001\"," + "\"quantity\":1," + "\"merchant_goods_id\":\"100025545\"," + "\"unit_price\":828800" + "}" + "]," + "\"cost_price\":608800" + "}," + "\"scene_info\": {" + "\"store_info\": {" + "\"address\":\"广东省深圳市南山区科技中一道10000号\"," + "\"area_code\":\"440305\"," + "\"name\":\"腾讯大厦分店\"," + "\"id\":\"0001\"" + "}," + "\"device_id\":\"013467007045764\"," + "\"payer_client_ip\":\"14.23.150.211\"" + "}" + "}"; StringEntity entity = new StringEntity(reqdata,"utf-8"); 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) { //处理成功,无返回Body 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(); } return EntityUtils.toString(response.getEntity()); } 这是代码 (有一些隐私东西不方便查看如商户号之类的) 一直报这个错是怎么回事 [图片]
2022-03-12 - code参数应该写什么?
[图片]这个code应该填写什么东西呢
2022-03-10 - 开通app支付问题
商户申请开通app支付中的appid主体是什么意思?
2022-01-18