8000 3.7.0刷脸支付,获取AuthInfo,对象里排序错误 com.github.binarywang.wxpay.bean.request.WxPayFaceAuthInfoRequest · Issue #1441 · binarywang/WxJava · GitHub
[go: up one dir, main page]

Skip to content
3.7.0刷脸支付,获取AuthInfo,对象里排序错误 com.github.binarywang.wxpay.bean.request.WxPayFaceAuthInfoRequest #1441
Closed
@ln0491

Description

@ln0491

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);

  }

项目已经上线,可以正常刷脸支付

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0