parking_id是微信停车入场接口返回的id,不能用自己定义的,随便写
支付分停车服务 扣费受理接口一直系统繁忙,其他接口没问题我是停车场服务商,最近申请了支付分停车服务,发现调用支付分停车服务扣费受理接口一直报系统繁忙,其他支付分停车服务接口没问题 扣费受理接口 https://api.mch.weixin.qq.com/v3/vehicle/transactions/parking 使用微信官方提供的wechatpay-apache-httpclient进行开发 21:22:23.189 [main] DEBUG org.apache.http.headers - http-outgoing-0 >> Host: api.mch.weixin.qq.com 21:22:23.189 [main] DEBUG org.apache.http.headers - http-outgoing-0 >> Connection: Keep-Alive 21:22:23.189 [main] DEBUG org.apache.http.headers - http-outgoing-0 >> User-Agent: WechatPay-Apache-HttpClient/0.2.2 (Windows 10/10.0) Java/1.8.0_291 21:22:23.189 [main] DEBUG org.apache.http.headers - http-outgoing-0 >> Accept-Encoding: gzip,deflate 21:22:23.189 [main] DEBUG org.apache.http.wire - http-outgoing-0 >> "POST /v3/vehicle/transactions/parking HTTP/1.1[\r][\n]" 21:22:23.189 [main] DEBUG org.apache.http.wire - http-outgoing-0 >> "Accept: application/json[\r][\n]" 21:22:23.189 [main] DEBUG org.apache.http.wire - http-outgoing-0 >> "Authorization: WECHATPAY2-SHA256-RSA2048 mchid="1346656001",nonce_str="mwAo29Jo37bBsCJTzPrO6OrZRGKaJYR1",timestamp="1627824142",serial_no="3BA05CCCBBE579147A2FF0D9B3E643D33DED8BAB",signature="DShYOwzWwNBOpeW6fDdbLhGIaCHYvvGwxOO5Ifk+Tu0lZT74s4I1DFNXeM3SU8FUKaut0Zs5pmOnCALCxOK+qSMmfSWPAkam4tO44Af5X5yrCopq9JvjHyJI5RAHZlabgb7pCUY5Td0LrIiYtkNGhtJ956+w+ilXc+kxoMOqXlML6ej9bqpwmkXdcCckg29zMgqkB+S3IMqi9bqTiIQB+RfEpW9eWG1XC11ka7nwKNtZ9wTbKx/z+z4FahyVrsE0kbeeXNwr0OzLX+slfiMNk8UdcL8EIHchTi2o3d0+JsU9S6UWYfWUgOqbCICPfeJsJUE3XcjORZuS83SYZpr4yQ=="[\r][\n]" 21:22:23.189 [main] DEBUG org.apache.http.wire - http-outgoing-0 >> "Content-Length: 532[\r][\n]" 21:22:23.189 [main] DEBUG org.apache.http.wire - http-outgoing-0 >> "Content-Type: application/json; charset=UTF-8[\r][\n]" 21:22:23.189 [main] DEBUG org.apache.http.wire - http-outgoing-0 >> "Host: api.mch.weixin.qq.com[\r][\n]" 21:22:23.189 [main] DEBUG org.apache.http.wire - http-outgoing-0 >> "Connection: Keep-Alive[\r][\n]" 21:22:23.189 [main] DEBUG org.apache.http.wire - http-outgoing-0 >> "User-Agent: WechatPay-Apache-HttpClient/0.2.2 (Windows 10/10.0) Java/1.8.0_291[\r][\n]" 21:22:23.189 [main] DEBUG org.apache.http.wire - http-outgoing-0 >> "Accept-Encoding: gzip,deflate[\r][\n]" 21:22:23.189 [main] DEBUG org.apache.http.wire - http-outgoing-0 >> "[\r][\n]" 21:22:23.189 [main] DEBUG org.apache.http.wire - http-outgoing-0 >> "{"appid":"wx4965abff0ba79af7","description":"[0xe5][0x81][0x9c][0xe8][0xbd][0xa6][0xe5][0x9c][0xba][0xe6][0x89][0xa3][0xe8][0xb4][0xb9]","attach":"[0xe5][0xbd][0xa2][0xe8][0xb1][0xa1][0xe5][0xba][0x97]","out_trade_no":"20150806125346","trade_scene":"PARKING","goods_tag":"WXG","notify_url":"https://devnew.yidianting.xin/user/weixinPay/carInNotity.do","profit_sharing":"N","amount":{"total":10,"currency":"CNY"},"parking_info":{"parking_id":"123123","plate_number":"[0xe7][0xb2][0xa4]YKU629","plate_color":"BLUE","start_time":"2021-07-31T10:43:39+08:00","end_time":"2021-08-01T10:44:39+08:00","parking_name":"test[0xe5][0x81][0x9c][0xe8][0xbd][0xa6][0xe5][0x9c][0xba]","charging_duration":10,"device_id":"7596"}}" 21:22:23.321 [main] DEBUG org.apache.http.wire - http-outgoing-0 << "HTTP/1.1 500 Internal Server Error[\r][\n]" 21:22:23.321 [main] DEBUG org.apache.http.wire - http-outgoing-0 << "Server: nginx[\r][\n]" 21:22:23.321 [main] DEBUG org.apache.http.wire - http-outgoing-0 << "Date: Sun, 01 Aug 2021 13:22:23 GMT[\r][\n]" 21:22:23.321 [main] DEBUG org.apache.http.wire - http-outgoing-0 << "Content-Type: application/json; charset=utf-8[\r][\n]" 21:22:23.321 [main] DEBUG org.apache.http.wire - http-outgoing-0 << "Content-Length: 66[\r][\n]" 21:22:23.321 [main] DEBUG org.apache.http.wire - http-outgoing-0 << "Connection: keep-alive[\r][\n]" 21:22:23.321 [main] DEBUG org.apache.http.wire - http-outgoing-0 << "Keep-Alive: timeout=8[\r][\n]" 21:22:23.321 [main] DEBUG org.apache.http.wire - http-outgoing-0 << "Cache-Control: no-cache, must-revalidate[\r][\n]" 21:22:23.321 [main] DEBUG org.apache.http.wire - http-outgoing-0 << "X-Content-Type-Options: nosniff[\r][\n]" 21:22:23.321 [main] DEBUG org.apache.http.wire - http-outgoing-0 << "Request-ID: 088FC09A880610EB0218FF9ACE5D20892928BD37-268440143[\r][\n]" 21:22:23.321 [main] DEBUG org.apache.http.wire - http-outgoing-0 << "Content-Language: zh-CN[\r][\n]" 21:22:23.321 [main] DEBUG org.apache.http.wire - http-outgoing-0 << "[\r][\n]" 21:22:23.321 [main] DEBUG org.apache.http.wire - http-outgoing-0 << "{"code":"SYSTEM_ERROR","message":"[0xe7][0xb3][0xbb][0xe7][0xbb][0x9f][0xe7][0xb9][0x81][0xe5][0xbf][0x99][0xef][0xbc][0x8c][0xe8][0xaf][0xb7][0xe7][0xa8][0x8d][0xe5][0x90][0x8e][0xe9][0x87][0x8d][0xe8][0xaf][0x95]"}" 请求该接口一直报系统繁忙
2022-11-17