Closed
Description
3.7.0
错误
<xml>
<appid>xxx</appid>
<mch_id>xxx</mch_id>
<nonce_str>xxx</nonce_str>
<sign>xxx</sign>
<store_id>1</store_id>
<store_name>xxx</store_name>
<device_id>xxx</device_id>
<rawdata>xxxxx</rawdata>
<now>1584095089</now>
<version>1</version>
</xml>
微信返回错误
【响应数据】:<xml><return_code><![CDATA[PARAM_ERROR]]></return_code>
<return_msg><![CDATA[请按格式填写mch_id,appid以及sign_type]]></return_msg>
</xml>
获取获取微信刷脸调用凭证请求对象类
com.github.binarywang.wxpay.bean.request.WxPayFaceAuthInfoRequest
@Override
protected void storeMap(Map<String, String> map) {
map.put("store_id", storeId);
map.put("store_name", storeName);
map.put("device_id", deviceId);
map.put("attach", attach);
map.put("rawdata", rawdata);
map.put("now", now);
map.put("version", version);
}
以上顺序错误
正确顺序
<xml>
<appid>xxx</appid>
<mch_id>xxx</mch_id>
<nonce_str>1584096192780</nonce_str>
<sign>xxx</sign>
<sign_type>MD5</sign_type>
<now>1584096192</now>
<version>1</version>
<rawdata>xxx</rawdata>
<store_id>1</store_id>
<store_name>xxx</store_name>
<device_id>1191517560252948482</device_id>
<attach>xxx</attach>
</xml>
@Override
protected void storeMap(Map<String, String> map) {
map.put("now", now);
map.put("version", version);
map.put("rawdata", rawdata);
map.put("store_id", storeId);
map.put("store_name", storeName);
map.put("device_id", deviceId);
map.put("attach", attach);
}
项目已经上线,可以正常刷脸支付