提交申请单API
https://api.mch.weixin.qq.com/v3/apply4subject/applyment
返回的提示:
{
"code":"SIGN_ERROR",
"detail":{
"detail":{
"issue":"sign not match"
},
"field":"signature",
"location":"authorization",
"sign_information":{
"method":"POST",
"sign_message_length":3127,
"truncated_sign_message":"POST
/v3/apply4subject/applyment
1568277791
r9vnoi5n407x65yuganzjtd74vj3m943
{"busine
",
"url":"/v3/apply4subject/applyment"
}
},
"message":"错误的签名,验签失败"
}
1.待验签的请求报文最后要有\n,如果是空也要有\n
2.自己的证书私钥是否正确?
3.如果试GET请求 url后拼接的参数顺序要注意,按照字母升序排序,并且参数值要URLencode
****************
楼主问题:微信返回的response说的已经很明确了,sign_message_length是微信验签的字符数,truncated_sign_message是微信验签的字符。
用这些信息和你签名时候的信息比较一下呢?
求问+1
你的解决了吗,,我的也报同样的错误,,求解
你好,请移步至微信支付专区https://developers.weixin.qq.com/community/pay提问,我们会有对应同学来处理,此贴先隐藏,请重新发帖咨询。