收藏
回答

下载资金账单接口提示[商户证书不合法]?

现在需要核对2018年的数据,使用的是开发文档V2版本,下载资金账单接口返回[商户证书不合法],但是用同样的商户号同样的证书走退款流程却没有问题。请求参数和返回响应信息如下:

-->request start

{

url: https://api.mch.weixin.qq.com/pay/downloadfundflow,

method: POST,

headers: [

ACCEPT: */*,

Content-Type: text/xml;charset=UTF-8,

Content-Length: 236,

Host: api.mch.weixin.qq.com,

Connection: Keep-Alive,

Accept-Encoding: gzip,

User-Agent: okhttp/3.3.0

],

body: <xml><nonce_str>d1d72a70906d4afebe0b824238849ce2</nonce_str><appid>xxxx</appid><mch_id>xxxx</mch_id><sign>xxxx</sign><bill_date>20180101</bill_date><account_type>Basic</account_type></xml>,

protocol: http/1.1

}

-->request end 

2020-12-14 18:26:20.821 +0800 [payment-api][DEV][INFO] from com.xingren.service.client.interceptors.HttpResponseLogInterceptor in Test worker - [vclient]{} 

<--response start

{

code: 200,

msg: OK,

url: https://api.mch.weixin.qq.com/pay/downloadfundflow,

headers: [

Server: nginx,

Date: Mon, 14 Dec 2020 10:26:20 GMT,

Content-Type: text/plain; charset=utf-8,

Content-Length: 114,

Connection: keep-alive,

Keep-Alive: timeout=8

],

body: <xml><return_code><![CDATA[FAIL]]></return_code><return_msg><![CDATA[商户证书不合法]]></return_msg></xml>,

tookMs: 233ms

}

有大佬帮忙解决一下嘛?签名已经用文档里的微信支付接口签名校验工具验证过了,没问题。


回答关注问题邀请回答
收藏

2 个回答

  • 支付社区运营
    支付社区运营
    2020-12-17

    请问现在问题解决了吗?如果还没解决建议您前往微信支付APIV3文档, 点击右下角‘技术咨询’实时寻求技术帮助。若您的问题得到解决,请回社区晒出解决方案,以帮助更多遇到此问题的人,感谢您的支持~

    2020-12-17
    有用
    回复
  • 蒋楠鑫
    蒋楠鑫
    2021-01-07

    已经解决了,下载资金账单接口要求的加密算法和其他接口不一样,仅支持HMAC-SHA256算法。


    2021-01-07
    有用
    回复 3
    • 张云倩
      张云倩
      2021-05-25
      您好,请问一下你使用HMAC-SHA256算法加密需要使用证书吗
      2021-05-25
      回复
    • 看到我请叫我学习🤪🤪
      看到我请叫我学习🤪🤪
      2022-07-11
      我想请问下,我使用的也是HMAC-SHA256算法加密的,但是还是显示不合法
      2022-07-11
      回复
    • C
      C
      2023-11-28
      请问后来咋解决的啊
      2023-11-28
      回复
登录 后发表内容
问题标签