今天小程序支付下单失败,返回400 . 昨天还是正常的。没有更改任何参数
以下是报错参数
HTTP/1.1 400 Bad Request [Server: nginx, Date: Thu, 29 Apr 2021 09:16:37 GMT, Content-Type: application/json; charset=utf-8, Content-Length: 50, Connection: keep-alive, Keep-Alive: timeout=8, Cache-Control: no-cache, must-revalidate, X-Content-Type-Options: nosniff, Request-ID: 08F5F2A9840610A00518A6B7C05520C81E28F3FE01-268501090, Content-Language: zh-CN, Wechatpay-Nonce: ba75bbf5f0bcf940108ed200bd3772e8, Wechatpay-Signature: PfECIsbeUf/NqSneB0PpAL67faRa6JuRpvTcDU4VQtTUkSnkvafAda6qDDF/kmhg0FFvEF5yvN83UwCDOzz1eqeRItYuRSzRt10Qq1R7zUQzxAQj7Ix/L8HhPG0GMfGYCbTT5guxNE9oHO/9o/3A+OHB68mCHVV1z9Bon7W0ZhE7xOfiRhue1cri5+9A1sxS9m27Sn3RBAB3keJfZYQFDkOzCxlpBt4ecz6rQQ9cKnbYhCiiUdpukDn/nkkoGRaKkVPi+pxRc6CSYcFIfGDnV+0wvk9InDjdWAOrRJO8KpSWGqJeYMHpJQW01qHvEUY1Vtl7Ex0IOLpfggSrpTLC5w==, Wechatpay-Timestamp: 1619687797, Wechatpay-Serial: 77AD02C81A6DCDC070085FBBCF82CD79A19EAA19] ResponseEntityProxy{[Content-Type: application/json; charset=utf-8,Content-Length: 50,Chunked: false]}
报错400一般是参数问题,建议先使用postman测试一下,排除参数问题,postman脚本
https://github.com/wechatpay-apiv3/wechatpay-postman-script
你可以用postman测试是不是正常
遇到了一个新问题 调起微信支付 识别不了keypath文件地址 报错