接口地址 :https://api.mch.weixin.qq.com/v3/pay/transactions/jsapi
以下是返回结果
{
"code": "SIGN_ERROR",
"detail": {
"detail": {
"issue": "sign not match"
},
"field": "signature",
"location": "authorization",
"sign_information": {
"method": "POST",
"sign_message_length": 839,
"truncated_sign_message": "POST\n/v3/pay/transactions/jsapi\n1719112481\nPXLFUAISFM6GYUPZ2ZHIT4JXJ29QEYH3\n{\r\n\t\"app\n",
"url": "/v3/pay/transactions/jsapi"
}
},
"message": "签名错误,请检查后再试"
}
建议直接使用sdkhttps://pay.weixin.qq.com/wiki/doc/apiv3/wechatpay/wechatpay6_0.shtml