WxPayConfig payConfig = new WxPayConfig();
payConfig.setMchId(merchantId);
payConfig.setApiV3Key(v3Key);
payConfig.setAppId("wxf2aafca43551b0b5");
payConfig.setCertSerialNo(merchantSerialNumber);
payConfig.setKeyPath(apiclient_cert);
payConfig.setPrivateCertPath(wechatPayCertificatePath);
payConfig.setPrivateKeyPath(privateKeyPath);
WxPayService wxPayService = new WxPayServiceImpl();
wxPayService.setConfig(payConfig);
RedpackService redpackService = wxPayService.getRedpackService();
请求
<xml>
<mch_id>125***********</mch_id>
<nonce_str>12332***********</nonce_str>
<sign>FB2D8A3D1221***********</sign>
<mch_billno>1000009820***********</mch_billno>
<send_name>hbfc</send_name>
<re_openid>oUJ9Y5UDlw***********</re_openid>
<total_amount>1</total_amount>
<total_num>1</total_num>
<wishing>wishing</wishing>
<act_name>qhb</act_name>
<remark>remark</remark>
<notify_way>MINI_PROGRAM_JSAPI</notify_way>
<wxappid>wxf2aafca43551b0b5</wxappid>
</xml>
响应
返回代码:SUCCESS,返回信息:签名错误,结果代码:FAIL,错误代码:SIGN_ERROR,错误详情:签名错误
appId wxf2aafca43551b0b5
用的哪个sdk?