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"}已返回,但在提交提示订单重复
商户系统内部订单号,要求32个字符内,只能是数字、大小写字母_-|* 且在同一个商户号下唯一,同一笔交易不能多次提交,换个商户订单号请求就可以了
微信支付API v3使用微信支付 的平台私钥(不是商户私钥 )进行应答签名,检查你使用的证书是不是正确
您好,这个工具类怎么用呢?