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

微信支付 文章 2020-08-10 11:41 2230 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


国内超级便宜服务器

摸鱼人热门新闻聚合

钻级赞助商 我要加入

开发者在线工具

第三方支付技术请加QQ群

相关文章
调用【创建代金券批次API】,返回NO_AUTH
分享网页到朋友圈为什么没有标题图片?
微信商户费率0.2
微信商家券和支付券的区别
微信小程序调起付款码,支付成功后能返回自定义小程序页面么?
随便看看
怎么添加小程序支付功能? 4516
教育科技公司申请微信支付被拒绝? 4798
微信公众号免300认证教程 5892
小程序已经上线,作为管理员无法在小程序数据助手查看数据? 5299
小程序广告组件通过审核,但是小程序内没有显示广告? 5067
企业微信通讯录账号被管理员误/恶意删除,怎么办? 9568
问题? 9047
如何快速搭建抽奖助手小程序(无需代码知识) 6177
许涛 大哥在吗, 要解冻小程序的时候提示信息主体不一致, 能帮忙看下吗? 7471
小程序搜一搜全称搜索不显示 麻烦解决一下!谢谢 6793