- 微信V3分账回调通知信息为空的
微信V3分账回调接口,接口有收到微信的调用,但是微信回调过来的报文为什么是空的
01-15 - 微信V3回调验签失败
微信V3的接口,支付回调验签使用NotificationParser验签解析Transaction,接口并未需要传公钥信息,但是调用后接口返回 Verify the signature and get the WechatPay certificate or publicKey corresponding to serialNumber[PUB_KEY_ID_0115625853912024112500337900000468] is empty.是什么原因。 获取头部信息代码如下: ServletInputStream inputStream = notifyData.getInputStream(); StringBuffer stringBuffer = new StringBuffer(); BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(inputStream)); String s; //读取回调请求体 while ((s = bufferedReader.readLine()) != null) { stringBuffer.append(s); } String bodyStr= stringBuffer.toString(); String timestamp = notifyData.getHeader("Wechatpay-Timestamp"); String nonce = notifyData.getHeader("Wechatpay-Nonce");//验签的随机字符串 String signType = notifyData.getHeader("Wechatpay-Signature-Type"); String serial = notifyData.getHeader("Wechatpay-Serial");//验签的微信支付平台证书序列号/微信支付公钥ID String signature = notifyData.getHeader("Wechatpay-Signature");//验签的签名值 验签解析代码如下: NotificationConfig config = new RSAAutoCertificateConfig.Builder() .merchantId(mchId) .privateKeyFromPath(privateKeyFromPath) .merchantSerialNumber(merchantSerialNumber) .apiV3Key(apiV3Key) .build(); NotificationParser parser = new NotificationParser(config); RequestParam requestParam = new RequestParam.Builder() .serialNumber(serial) .nonce(nonce) .signature(signature) .timestamp(timestamp) .signType(singType) .body(bodyStr) .build(); Transaction parse = parser.parse(requestParam, Transaction.class);
01-10 - 微信v3的JSPAI接口普通商户和特约商户是否可以用同一个借口
看官方文档上的描述对于JSPAI接口 普通商户和特约商户貌似只能分开调用,是否有有接口可以直接调用同一个,对于特约商户就传sub_mch_id,普通商户就不传这个值就行了
01-02 - 模板消息调用超时问题
调用https://api.weixin.qq.com/cgi-bin/message/template/send?access_token=%s接口超时时间为20s了还会超时是什么原因
2023-12-28