- 刷脸支付发起订单支付/pay/micropay 为什么返回“受理机构必须传入sub_mch_id“?
微信刷脸支付: 发起订单支付接口:https://api.mch.weixin.qq.com/pay/micropay 请求参数: <xml> <appid>wx************</appid> <auth_code>144831*******</auth_code> <body>刷脸支付-支付测试</body> <fee_type>CNY</fee_type> <mch_id>15******</mch_id> <nonce_str>V37ZHZVf2OrwsUV7kXTjTguP74c0babc</nonce_str> <out_trade_no>LTA0P18937F1305321605078895182</out_trade_no> <sign>82207340F965E5DF1446DE9AA7E79302</sign> <sign_type>MD5</sign_type> <spbill_create_ip>172.16.200.217</spbill_create_ip> <time_expire>20201111151655</time_expire> <time_start>20201111151455</time_start> <total_fee>1</total_fee> </xml> 接口调用后返回结果: <xml><return_code><![CDATA[FAIL]]></return_code> <return_msg><![CDATA[受理机构必须传入sub_mch_id]]></return_msg> </xml> 按照平台SDK说明文档和文旦提供的参考传入参数,该接口参数没有sub_mch_id这个参数字段,但是为什么返回失败原因又说改字段必须传入?
2020-11-11 - 微信刷脸支付getWxpayFaceAuthInfo.php一直返回“无效的RawData数据”?
返回结果: <xml><return_code><![CDATA[ERROR]]></return_code> <return_msg><![CDATA[无效的RawData数据]]></return_msg> <nonce_str><![CDATA[5lrdujrJmNf4igr4HyAxgnou2W2b0YwA]]></nonce_str> <sign><![CDATA[083013700CBAAEF96057965AB7EBFF36]]></sign> </xml> 1、确定使用的rawdata与getWxpayfaceRawdata()返回的rawdata数据一致; 2、时间now参数与当前时间一致; 请求RequestBody: val body = RequestBody.create(MediaType.parse("application/xml"), reqStr) reqStr数据内容如下: <xml> <appid>......</appid> <device_id>LTA0P18937F130532000001</device_id> <mch_id>......</mch_id> <nonce_str>V37ZHZVf2OrwsUV7kXTjTguP74c0byvE</nonce_str> <now>1604577508</now> <rawdata>0OkagdJBd6U9MKXwAl2KxLwaIq4zdinYxadhJp4/6gfuQaWCgWYJzYGoBitog7WkxAtpAFk9J4HTvf9a814M+ows5zI6LBwaq3RVVoNO4FsgQVaYFjaNhW0eEuCwsQbzm9DikCQZFR+pR7kY9FVtobO+KsTbjcpF1/pkne8YKa4fR/Y/SZMFbW/TwD+iwEPyQdQZo7mzHQCa53IZRrzpeVyGSKpDUK71wyMRV4WvnVzrpqOE2vqQq/RaqE2oiNA2pDcrTGK1F+JZ/BN2hTo2RkTCAU3V/XWiQwf6GV+X3zKNTrnsTQidSkb3c9IEIwZb5b529jd2Deb957iwiRaaQYRGPPV/mr16pWkGiHoVxbsloNv5aC8ahtktGK/h50Rz569Yii0XJT0V0/rKaLAMUbPyxQp8Sfc7gOVySXV3wC+xOY7My7KqWkXJJIzw38/fdUUB+yBHMf2Hpj4XtJAR6UVsfHIokU7+cSOWHl2VJEOmVo6khjXEEonaBwxduHLq+xMcla8DRqdmo7+VT3zEdvELiWbJVPJM/Cbw/MUvc4F6IU/hzWSyCWyPqPwHKi3LwcQ82Aj9WmyEWG1ZErbID9CwXIGc0lmVdM8LmONpbiqBXrGpPEs7dwSlkERYVHaepcA1trLjZKv0CG57g4rURBoqmjIwejEAipTmSWT266XozmEfW7uJ22vMmb3UBosKhhhsC9n3LCYy6p7uiaGBi2QEVsEvOyjiRULv3oDhPImOEckj2ra3zR1JAltoOHkYQ3eGt+t/SiiKT3J6LphV0vNyt1CwmAmYCoHo+PTwwYrYLlkYNjxngsViZkkzJwtZ1UXCZFYTxPTlRKWlvw==</rawdata> <sign>4E1B9DBE3DDA0C6ABF4E1265F95F98DE</sign> <sign_type>MD5</sign_type> <version>1</version> </xml>
2020-11-05