是我组成签名的字符串有问题吗,没有 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"}}}
python开发者可以使用已经封装好的“微信支付 V3 API Python SDK”
https://github.com/minibear2021/wechatpayv3
验证签名工具:
链接:https://pan.baidu.com/s/1ixOAnYyZVW13dFr0jWVpvw
,麻烦使用V3签名验证工具参考V3签名文档https://wechatpay-api.gitbook.io/wechatpay-api-v3/
进行排查修改。V3签名需使用apiv3秘钥。麻烦参考https://kf.qq.com/faq/180830E36vyQ180830AZFZvu.html