- V3支付下单接口,401 签名错误
https://api.mch.weixin.qq.com/v3/pay/transactions/app [图片] HTTP/1.1 401 Unauthorized\r\nServer: nginx\r\nDate: Thu, 31 Dec 2020 01:38:11 GMT\r\nContent-Type: application/json; charset=utf-8\r\nContent-Length: 372\r\nConnection: keep-alive\r\nKeep-Alive: timeout=8\r\nCache-Control: no-cache, must-revalidate\r\nX-Content-Type-Options: nosniff\r\nRequest-ID: 0883D7B4FF05101C18DEC8EEA30620A72C2881E603-269546525\r\nContent-Language: zh-CN\r\n\r\n{\"code\":\"SIGN_ERROR\",\"detail\":{\"detail\":{\"issue\":\"sign not match\"},\"field\":\"signature\",\"location\":\"authorization\",\"sign_information\":{\"method\":\"POST\",\"sign_message_length\":298,\"truncated_sign_message\":\"POST\\n/v3/pay/transactions/app\\n1609378690\\ndvc4xoaq2wqodk25cp7hpohulz7n4ex3\\n{\\\"appid\\\"\\n\",\"url\":\"/v3/pay/transactions/app\"}},\"message\":\"错误的签名,验签失败\"} Request-ID: 0883D7B4FF05101C18DEC8EEA30620A72C2881E603-269546525
2020-12-31 - 建立支付API,签名出现401 Unauthorized,求大神指点?
已经按照规则生成签名串 https://wechatpay-api.gitbook.io/wechatpay-api-v3/qian-ming-zhi-nan-1/qian-ming-sheng-cheng, 并且根据商户私钥对签名串进行SHA256 with RSA签名,HTTP头也传了[代码]Authorization,还是一直提示[代码]401 Unauthorized, 证书下载这个接口https://api.mch.weixin.qq.com/v3/certificates 签名通过了,就是对接到https://api.mch.weixin.qq.com/v3/pay/transactions/app加上数据 提示401 Unauthorized, 求大神指点 [图片]
2020-12-30