- 小程序支付,第一次返回了prepay_id,结果应答的微信支付签名验证失败,再次提交订单订单号重?
private CloseableHttpResponse executeWithSignature(HttpRoute route, HttpRequestWrapper request, HttpClientContext context, HttpExecutionAware execAware) throws IOException, HttpException { // 上传类不需要消耗两次故不做转换 if (!(request.getOriginal() instanceof WechatPayUploadHttpPost)) { convertToRepeatableRequestEntity(request); } // 添加认证信息 request.addHeader("Authorization", credentials.getSchema() + " " + credentials.getToken(request)); // 执行 CloseableHttpResponse response = mainExec.execute(route, request, context, execAware); // 对成功应答验签 StatusLine statusLine = response.getStatusLine(); if (statusLine.getStatusCode() >= 200 && statusLine.getStatusCode() < 300) { convertToRepeatableResponseEntity(response); if (!validator.validate(response)) { throw new HttpException("应答的微信支付签名验证失败"); } } return response; } 抛出:应答的微信支付签名验证失败,{"prepay_id":"wx23172422680548bac3a6955a0104660000"}已返回,但在提交提示订单重复
2021-09-23 - 应答的微信支付签名验证失败,getCertificateTest()方法?
[main] WARN com.wechat.pay.contrib.apache.httpclient.auth.WechatPay2Validator - signature verify fail: serial=[] message=[ {"data":[{"effective_time":"2021-07-15T13:31:23+08:00","encrypt_certificate":{"algorithm":"AEAD_AES_256_GCM","associated_data":"certificate","ciphertext":"","nonce":"a674bf75ea55"},"expire_time":"2026-07-14T13:31:23+08:00","serial_no":""}]} ] sign=[] org.apache.http.client.ClientProtocolException at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:187) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:108) at com.wechat.pay.contrib.apache.httpclient.HttpClientBuilderTest.getCertificateTest(HttpClientBuilderTest.java:87) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) at org.junit.runners.ParentRunner.run(ParentRunner.java:363) at org.junit.runner.JUnitCore.run(JUnitCore.java:137) at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68) at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47) at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242) at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70) Caused by: org.apache.http.HttpException: 应答的微信支付签名验证失败 at com.wechat.pay.contrib.apache.httpclient.SignatureExec.executeWithSignature(SignatureExec.java:73) at com.wechat.pay.contrib.apache.httpclient.SignatureExec.execute(SignatureExec.java:49) at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89) at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110) at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185) ... 27 more
2021-09-23 - 标准版交易组Plugin "wx34345ae5855f892d/0"is not defined?
[图片][图片][图片]
2021-07-07 - 开发者调用本地接口404,线上的接口就是正常的?
@RequestMapping"/getSessionId"@ResponseBody@RequestParam String code, String siteId) VM8 asdebug.js:1 POST http://192.168.1.113:8080/wechat/getSessionId 404 (Not Found) 大家遇到过这样的问题吗
2021-03-23 - 调用本地后台的方法报404的错误,访问线上的路径就可以?
本机为ip:8080,换成localhost也不行,换成线上的请求url就没有问题,工具都写了重新装依然还是这个问题,请问是什么原因造成的
2021-03-23 - 之前申请了一个个人的小程序账号,为发布任何小程序,最近登录提示账号已被冻结,如何解冻?
在手机上解冻提示账号违背冻结 谁遇到过这种情况如何解冻
2020-10-23