v3的提交申请单API证书序列号冲突

微信支付 文章 2020-08-10 11:41 2099 0 全屏看文

AI助手支持GPT4.0

v3的提交申请单API证书序列号冲突The API certificate serial number conflicts in the v3 submission application form

v3的提交申请单API证书序列号冲突

特约商户进件接口提交进件数据的时候报错: 微信支付V3

使用证书自带serial_no时报错:商户证书序列号有误。请使用签名私钥匹配的证书序列号;更改为接口下载证书serial_no时,报错商户证书序列号有误。请使用签名私钥匹配的证书序列号;

一个奇怪的现象:

从平台证书:https://api.mch.weixin.qq.com/v3/certificates 接口获取证书,和我们解析出来的证书不一致;

v3的提交申请单API调用时发送的证书序列号是 1AF73A340EB738B13213B1594B5495B946D0D74C,此证书是从微信的商户平台下载的。但是返回 平台证书序列号Wechatpay-Serial错误  ,

返回的   "Request-ID","value":"247x3o"   返回的验签序列号,"WechatpaySerial","value":"7DAECE20D45126AA26C9DECA84713D5FB2F69D02“   ,麻烦看一下这个问题,是因为证书冲突了吗?还是微信有具体什么控制逻辑?

An error is reported when the incoming data is submitted by the special merchant's incoming interface: wechat payment V3 uses the certificate with serial_ No time error: merchant certificate serial number is wrong. Please use the certificate serial number matched by the signature private key; change to the interface to download the certificate serial_ When no, the wrong merchant certificate serial number is reported. Please use the certificate serial number matching the signature private key; a strange phenomenon: from the platform certificate: https://api.mch.weixin.qq.com/v3/certificates The interface obtains the certificate, which is inconsistent with the certificate we resolve. The serial number of the certificate sent when the V3 submit application form API call is 1af73a340eb738b1323b1954b5495b946d0d74c, this certificate is downloaded from the wechat merchant platform. However, the returned platform certificate serial number wechatpay serial is wrong, and the returned "request ID", "value": "247x3o" returned signature verification serial number, "wechatpayserial", "value": "7daece20d45126aa26c9deca84713d5fb2f69d02", please take a look at this problem, is it because of certificate conflict? Or does wechat have specific control logic?

回答:

支付技术助手8:

1,证书分为平台证书和商户证书。

2,Wechatpay-Serial这里指的是通过接口获得的证书的序列号。

https://wechatpay-api.gitbook.io/wechatpay-api-v3/chang-jian-wen-ti/zheng-shu-xiang-guan,参考一下这里

北望沣渭:

这个接口涉及俩证书序列号,其中:

  • 平台证书序列号要在请求头header[Wechatpay-Serial] 随请求一并发送(商户敏感信息加密,平台做敏感信息解密)
  • 商户证书序列号要在请求头header[Authrozation] 按v3文档做格式编码一并发送(即serial_no段)


特别的 敏感信息商户侧加密是用的平台公钥证书,这个很容易不注意就用商户公钥证书了

peng:

证书分平台证书与商家证书,你这里是不是弄错了,

Wechatpay-Serial传的是接口获得的证书接口的序列号。


-EOF-

AI助手支持GPT4.0