微信公众号H5支付RSA签名验证失败
以下是签名信息
{
"timeStamp": "1635410762",
"package": "prepay_id=wx28164602409922cfab9c522e7e77a70000",
"paySign": "AuIT8jxpE11zVC0b1kzOzBXpKwymeqeMhZ/yzN7b6pzJalYF8eQy1SsgbTXaMn/LZ2kC9ALapUB1f/bZBf7pm7gD8RCv/0R3ZoN6d3EUrtsATtRr52M7U2allLEKIVioCh7yBbxkypM0rzDBmFhucXB1mkXHIpe2FZr3heEScnKyB2CkLMtfipwoCYDPW8ONMBeFt+q+bH0OxREP7AGiGw7dEbd39gfZ8zDyO2FLEvJWmu5Wr821cngQLcUtAyv8mAmTRIb7/PYsM2j1ot1gt9ozKkFo7eCQf/R3cf9HK3+H0V0FcVtJ+kUrFEVOBLRAR8HbVqO1yKG/rhyek4s3nw==",
"appId": "wxc9fcf1d5c6e048b7",
"signType": "RSA",
"prepayId": "wx28164602409922cfab9c522e7e77a70000",
"nonceStr": "593cde349f3248ceaa8edaa2b9e47791",
"prepay_id": "wx28164602409922cfab9c522e7e77a70000"
}
发现问题了,前端支付插件timeStamp是小写的timestamp ,接口返回的是 timeStamp,结果前端调起微信支付的时候timeStamp=undefined ,所以就签名报错了