企业付款到银行卡失败failed to decrypt safe contents entry

企业付款到银行卡失败failed to decrypt safe contents entry

所有业务逻辑,更换为其他商户号就可以,不知道哪里出了问题,求解答

<partner_trade_no>15958364583308</partner_trade_no>

<mch_id>1497069942 </mch_id>

正常的商户号是:1412356802

java.io.IOException: failed to decrypt safe contents entry: javax.crypto.BadPaddingException: Given final block not properly padded

at sun.security.pkcs12.PKCS12KeyStore.engineLoad(PKCS12KeyStore.java:1317)

at java.security.KeyStore.load(KeyStore.java:1226)

at com.jim.iweb.framework.core.utils.ReadSSl.readCustomSSL(ReadSSl.java:41)

at com.jim.iweb.framework.core.utils.XmlPostUtil.httpClientGetResult(XmlPostUtil.java:189)

at com.jim.iweb.hotel.common.utils.withdraw.WeiXinWithdrawUtils.withdraw(WeiXinWithdrawUtils.java:92)

All business logic can be changed to other merchant numbers. If you don't know what's wrong, ask for the answer_ trade_ no>15958364583308 1497069942 is 1412356802 java.io.IOException : failed to decrypt safe contents entry: javax.crypto.BadPaddingException : Given final block not properly padded at sun.security.pkcs12 .PKCS12 KeyStore.engineLoad (PKCS12 KeyStore.java:1317 ) at java.security.KeyStore .load( KeyStore.java:1226 ) at com.jim.iweb . framework.core.utils . ReadSSl.readCustomSSL ( ReadSSl.java:41 ) at com.jim.iweb . framework.core.utils . XmlPostUtil.httpClientGetResult ( XmlPostUtil.java:189 ) at com.jim.iweb . hotel.common.utils . withdraw.WeiXinWithdrawUtils.withdraw ( WeiXinWithdrawUtils.java:92 )

回答:

支付技术助手8:

https://pay.weixin.qq.com/wiki/doc/api/tools/mch_pay.php?chapter=4_3,该报错是你使用了错误的证书文件导致的。麻烦参考该篇文档。

-EOF-