Python WechatPay-API-v3 签名验签通过 接口未通过签名验证?
是我组成签名的字符串有问题吗,没有 body 可以验证通过。
调用接口: /v3/pay/transactions/h5
请求参数:
{
"appid": "wxappid",
"mchid": "wxmachid",
"description": "aa",
"out_trade_no": "202008200202",
"notify_url": "http://baidu.com",
"amount": {
"total": 1000,
"currency": "CNY"
},
"scene_info": {
"payer_client_ip": "127.0.0.1",
"h5_info": {
"type": "Wap",
"app_name": "shop"
}
}
}
签名的字符串:
GET
/v3/pay/transactions/h5
1598005672
5f494a06a252f974a9befb04a1175db1
{"appid":"wxappid","mchid":"wxmachid","description":"aa","out_trade_no":"202008200202","notify_url":"http://baidu.com","amount":{"total":1000,"currency":"CNY"},"scene_info":{"payer_client_ip":"127.0.0.1","h5_info":{"type":"Wap","app_name":"shop"}}}