这是统一下单返回的数据,麻烦你帮忙看看日志
【请求地址】:https: //api.mch.weixin.qq.com/pay/unifiedorder, 【请求数据】:<xml>, <appid>wxe4eb723068174704</appid>, <mch_id> 1514128651 </mch_id>, <nonce_str> 1573885944492 </nonce_str>, <sign>DFAB7F66136AF1634E3C841EF1D7D1D6</sign>, <device_info></device_info>, <body>延保支付</body>, <out_trade_no> 542 </out_trade_no>, <fee_type>CNY</fee_type>, <total_fee> 1 </total_fee>, <spbill_create_ip> 192.168 . 1.1 </spbill_create_ip>, <notify_url>http: //wxtest.konka.com/services/api/wxpay/notify/scanpay</notify_url>, <trade_type>JSAPI</trade_type>, <product_id>YB2019111600011</product_id>, <openid>oq4wQ5TxDeBs0R1ycKWF0c7E154w</openid>, </xml>, http: //wxtest.konka.com/services/api/wxpay/notify/scanpay 【响应数据】:<xml><return_code><![CDATA[SUCCESS]]></return_code>, <return_msg><![CDATA[OK]]></return_msg>, <appid><![CDATA[wxe4eb723068174704]]></appid>, <mch_id><![CDATA[ 1514128651 ]]></mch_id>, <nonce_str><![CDATA[NznWpmVkZuJDh3gq]]></nonce_str>, <sign><![CDATA[7AE27A5F0BE92F8C82218C86AC9FA5EE]]></sign>, <result_code><![CDATA[SUCCESS]]></result_code>, <prepay_id><![CDATA[wx16143225065970171ebeef411597267300]]></prepay_id>, <trade_type><![CDATA[JSAPI]]></trade_type>, </xml>, |
https://pay.weixin.qq.com/wiki/doc/api/jsapi.php?chapter=23_2&index=2,建议用工具检查一下网络是否通。回调地址是否能正常访问
测试时要确保此异步通知地址(http://wxtest.konka.com/services/api/wxpay/notify/scanpay)能被外网正常访问。本地调试可以做内网端口映射,常用的工具推荐 FRP、Ngrok、花生壳等