解决了,居然是因为请求头中的Authorization内容使用了单引号,那就报错了,改成双引号好用了
小程序 使用v3 api支付,签名错误 sign not match?使用微信的签名验证工具校验,签名验证通过,但是一发送微信请求,就报错 sign not match,这是差在哪?我知道是签名错误,但是已经完全按照官网签名生成去写的了,不要只告诉我签名不对,我知道不对,可是签名验证工具验过了啊 [图片] [图片] [图片] [图片] [图片]
2022-09-15解决了吗?我也是这个问题,我连微信的签名工具校验都通过了,也报这个错
v3 jsapi支付的请求提示sign not match?调用接口https://api.mch.weixin.qq.com/v3/pay/transactions/jsapi 这是接口请求的参数 [图片] 这个是Authorization的值: WECHATPAY2-SHA256-RSA2048 mchid="160000000",nonce_str="iLIphsPEMqFEWOqDSuTFsdwtMuSjpSiF",signature="mVu3zcrw4CmjTZmdAMwJFVJaM8yiMUSrxa8gpT6uL/caqTaGtoDjdtYaNQEicGzbWgkVnD9BQ6V25BBx3eeOwnTk6HdQLxzLKtysmMdHK+MnAJWm54PeM3xtE0BAXMXqiV7d8//sqwrl0w+TwTGC4u0yldLL3sCjwBwSU3tQ6GqDwqI7zmJ9U81IRHPtVgap1VtWj+LBZ+IPRptDq/2JIuM8u1SPASYwPRSRdCOvOB+1gXbxhtJuXJVMWLotXg9iNBEpDYqv/HyUQBbsrSM5UCNNvunzGFMvL1G59XhVQHc2aeB7fegpRvW9FXUzPl9nEAtKaI0Jqb0U6qr3NsAFfQ==",timestamp="1662531440",serial_no="000038D7AE889977C9FBED63C3B821D9B8345B" 这个是返回的结果 [图片] 官方文档是这样的 [图片] 我看了格式是相同的,怎么解决这个问题?
2022-09-15解决了吗?我也碰到这个问题,但是我用微信签名验证的工具,显示签名验证通过啊,也是这种报错
sign not match我参照文档要求书写,但是包sign not match {"code":"SIGN_ERROR","detail":{"detail":{"issue":"sign not match"},"field":"signature","location":"authorization","sign_information":{"method":"","sign_message_length":128339065,"truncated_sign_message":"","url":""}},"message":"Authorization不合法"}{"code":"SIGN_ERROR","detail":{"detail":{"issue":"sign not match"},"field":"signature","location":"authorization","sign_information":{"method":"","sign_message_length":128339065,"truncated_sign_message":"","":""}},"message":"Authorization不合法"}
2022-09-15