Play Framework 整合 农业银行网银

1. 将  abc.truststore  TrustPay.cer 以及 银行申请下来的 B2C服务器证书.pfx 拷贝到 C:/wndows/system32 下 [这个路径是可以选择的后期再说]
2. 将 上面三个文件的路径整合到  TrustMerchant.properties 中

TrustPayConnectMethod=https
TrustPayServerName=www.95599.cn
TrustPayServerPort=443
TrustPayNewLine=2
TrustPayTrxURL=/b2c/trustpay/ReceiveMerchantTrxReqServlet
TrustPayIETrxURL=https://easyabc.95599.cn/b2c/trustpay/ReceiveMerchantIERequestServlet
MerchantErrorURL=
TrustPayCertFile=C:/WINDOWS/system32/TrustPay.cer

TrustStoreFile=C:/WINDOWS/system32/abc.truststore
TrustStorePassword=changeit
MerchantID= 商户名称
LogPath=D:/ABC/log
MerchantKeyStoreType=0
MerchantCertFile=C:/WINDOWS/system32/B2CServer.pfx
MerchantCertPassword=95599
MerchantErrorURL=出错回调地址


3将 TrustMerchant.properties 放到 app 目录下。  一定要这样 我为了这个问题折腾了好几个小时 后来没办法 反编译了 农行的源码才知道的
农行源码
iResourceBundle = ResourceBundle.getBundle("TrustMerchant");

所以你写到其他路径下  他会找不到 

你可能感兴趣的:(framework)