已解决,腾讯的骚操作,添加完一次回来不要动,不要做任何操作,再添加一次刚才添加的地址,成功!
JSAPI支付授权目录添加后无提示,目录列表中也没有添加后的地址,什么情况?JSAPI支付的支付授权目录,总共可以添加5个,以前添加过3个[图片] 现在添加新的为什么没反应,添加完了也没说成功失败,目录也不显示刚添加的,谷歌和火狐都试了,都是配置的根目录,带http和不带的也都试了,没反应,请问这个怎么破?是域名中不能带test字样吗?[图片][图片]
2020-07-24已解决,普通商户也可以
V3返回401怎么解决?普通商户到底能不能接v3?V3版接口目前主要针对两类商户对接:电商平台、微信支付分。 这个两类是指商户资料里面的经营类目吗??? 经营类目是游戏类型的能不能用v3,卡几天了,急!!!!!!!!!
2020-07-24已解决,官方demo回调地址多个空格,坑了好几天、、、
微信支付v3普通商户h5下单400是什么问题?请求URL:https://api.mch.weixin.qq.com/v3/pay/transactions/h5 请求方式:POST PrivateKey merchantPrivateKey = PemUtil.loadPrivateKey( new ByteArrayInputStream(privateKey.getBytes("utf-8"))); //使用自动更新的签名验证器,不需要传入证书 verifier = new AutoUpdateCertificatesVerifier( new WechatPay2Credentials(mchId, new PrivateKeySigner(mchSerialNo, merchantPrivateKey)), apiV3Key.getBytes("utf-8")); httpClient = WechatPayHttpClientBuilder.create() .withMerchant(mchId, mchSerialNo, merchantPrivateKey) .withValidator(new WechatPay2Validator(verifier)) .build(); HttpPost httpPost = new HttpPost("https://api.mch.weixin.qq.com/v3/pay/transactions/h5"); String data = "{\n" + " \"time_expire\": \"2018-06-08T10:34:56+08:00\",\n" + " \"amount\": {\n" + " \"total\": 100,\n" + " \"currency\": \"CNY\"\n" + " },\n" + " \"mchid\": \"商户id\",\n" + " \"description\": \"Image形象店-深圳腾大-QQ公仔\",\n" + " \"notify_url\": \" https://www.weixin.qq.com/wxpay/pay.php\",\n" + " \"out_trade_no\": \"1217752501201407033233368019\",\n" + " \"appid\": \"appid\",\n" + " \"scene_info\": {\n" + " \"h5_info\": {\n" + " \"type\": \"iOSAndroidWap\"\n" + " },\n" + " \"payer_client_ip\": \"14.23.150.211\"\n" + " }\n" + "}"; StringEntity reqEntity = new StringEntity( data, ContentType.create("application/json", "utf-8")); httpPost.setEntity(reqEntity); httpPost.addHeader("Accept", "application/json"); httpPost.addHeader("Wechatpay-Serial", "微信支付平台生成的证书得序列号");//请求头这里加了Wechatpay-Serial,加不加都是400错误 CloseableHttpResponse response = httpClient.execute(httpPost); //httpClient构建的时候会组装好Authorization,Authorization里面放的商户签名,是普通商户不能用这个api吗?
2020-07-24