Map<String, String> data = new HashMap<String, String>();
data.put("appid","xxxxxxxx");
data.put("mch_id",config.getMchID()); //商户号
data.put("trade_type","JSAPI"); //支付场景 APP 微信app支付 JSAPI 公众号支付 NATIVE 扫码支付
data.put("notify_url",notifyUrl); //回调地址
data.put("spbill_create_ip","xxx.xx.xx.xxx"); //终端ip
data.put("total_fee",amount); //订单总金额
data.put("out_trade_no",ordernum); //交易号
data.put("attach", loid);
data.put("detail", sname);
data.put("body",gname);
data.put("openid",openid);
data.put("nonce_str",WXPayUtil.generateNonceStr());// 随机字符串小于32位
String s = md5Util.getSign(data);
data.put("sign",s);
Map<String, String> respData = wxpay.unifiedOrder(data);
调用统一下单方法报错 信息如下:
INFO - report v1,WXPaySDK/3.0.9,eoy6XHb7q06SavyK5IRs2V9ann33YjnC,1603444100,416,api.mch.weixin.qq.com,true,6000,8000,0,0,0,CB6A9CF27E42C8B5AFB7FD0927C4B81E8435317C2ACE8172960129F61F72F73F
INFO - get first report msg: v1,WXPaySDK/3.0.9,eoy6XHb7q06SavyK5IRs2V9ann33YjnC,1603444100,416,api.mch.weixin.qq.com,true,6000,8000,0,0,0,CB6A9CF27E42C8B5AFB7FD0927C4B81E8435317C2ACE8172960129F61F72F73F
INFO - try get remain report msg
直接把走官方统一下单返回的支付报文说明下