91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 5.1MB
    文件類型: .zip
    金幣: 2
    下載: 1 次
    發布日期: 2023-08-14
  • 語言: Java
  • 標簽: 接口文檔??demo??

資源簡介

農行web端網銀支付java接口文件及demo

資源截圖

代碼片段和文件信息


import?java.io.File;
import?java.io.FileInputStream;
import?java.io.FileNotFoundException;
import?java.io.IOException;
import?java.util.ArrayList;

import?com.abc.pay.client.CertHelper;
import?com.abc.pay.client.Constants;
import?com.abc.pay.client.FileUtil;
import?com.abc.pay.client.MerchantPara;
import?com.abc.pay.client.MerchantParaFactory;
import?com.abc.pay.client.MerchantParaWeb;
import?com.abc.pay.client.TrxException;

/**
?*?具體工廠-客運工廠,從數據庫中讀取配置
?*?生產兩種產品:MerchantParaWeb和
?*/
public?class?MerchantParaFromDB?extends?MerchantParaFactory?{

????/**
?????*?商戶端配置文件資源對象
?????*/
????private?static?MerchantPara?paraWeb?=?null;
???
????/**
?????*?初始旗標
?????*/
????private?static?boolean?iIsInitialedWeb?=?false;

public?void?refreshConfig()?throws?TrxException?{
iIsInitialedWeb?=?false;
}

public?void?init(MerchantPara?para){
try?{
//##網上支付平臺系統配置段?-?生產環境?-?請勿更改?
//#網上支付平臺通訊方式(http?/?https)
//公網
para.setTrustPayConnectMethod(“https“);
//專線
para.setTrustPayConnectMethodLine(“https“);

//#網上支付平臺服務器名
//公網
para.setTrustPayServerName(“pay.abchina.com“);
//專線
para.setTrustPayServerNameLine(“pay.abchina.com“);

????//#網上支付平臺交易端口
//公網
para.setTrustPayServerPort(“443“);
//專線
para.setTrustPayServerPortLine(“443“);

//#網上支付平臺交易網址
para.setTrustPayTrxURL(“/ReceiveMerchantTrxReqServlet“);
para.setTrustPayTrxIEURL(“https://pay.abchina.com/ebus/ReceiveMerchantIERequestServlet“);

//#頁面提交支付請求失敗后的轉向地址
para.setMerchantErrorURL(“http://127.0.0.1:8080/ebusnewupdate/Merchant.html“);

//##網上支付平臺系統配置段?-?生產環境?-?更改證書存放路徑,使其和本地存放路徑相匹配(絕對路徑)
//#網上支付平臺證書
para.setTrustPayCertFileName(“D:/cert/TrustPay.cer“);

//#農行根證書文件
para.setTrustStoreFileName(“D:/cert/abc.truststore“);

//#農行根證書文件密碼
para.setTrustStorePassword(“changeit“);

//設置商戶編號。如果是多商戶則在iMerchantIDList放置多條記錄
ArrayList?iMerchantIDList?=?new?ArrayList();
iMerchantIDList.add(“103881104410001“);
??????para.setMerchantIDList(iMerchantIDList);???????????

??????FileUtil?util?=?new?FileUtil();
????????????
//設置商戶證書。如果是多商戶則在iMerchantCertNameList放置多條記錄。注意:商戶證書名稱順序要與商戶編號順序一致
ArrayList?iMerchantCertList?=?new?ArrayList();
iMerchantCertList.add(util.readFile(“D:/cert/103881104410001.pfx“));
para.setMerchantCertFileList(iMerchantCertList);
????????????
??????//設置商戶證書密碼。如果是多商戶則在iMerchantPasswordList放置多條記錄。注意:密碼順序要與商戶編號順序一致
ArrayList?iMerchantPasswordList?=?new?ArrayList();
iMerchantPasswordList.add(“11111111“);//?商戶私鑰密碼
para.setMerchantCertPasswordList(iMerchantPasswordList);

//#交易日志文件存放目錄
para.setLogPath(“D:/workspace/ebusnewupdate/log“);
//#證書儲存媒體
para.setMerchantKeyStoreType(“0“);

//一般商戶都選用文件證書
??????if?(para.getMerchantKeyStoreType().equals(MerchantPara.KEY_STORE_TYPE_FILE))?{
??????????CertHelper.bindMerchantCertificate(para?i

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2015-10-15?13:51??JAVA接口包-升級版\
?????目錄???????????0??2015-07-02?15:18??JAVA接口包-升級版\ABCIcon\
?????文件???????59239??2009-06-17?13:53??JAVA接口包-升級版\ABCIcon\abcicon1.jpg
?????文件???????43840??2009-06-17?13:53??JAVA接口包-升級版\ABCIcon\abcicon2.jpg
?????文件???????57971??2009-06-17?13:53??JAVA接口包-升級版\ABCIcon\abcicon3.jpg
?????目錄???????????0??2015-07-02?15:18??JAVA接口包-升級版\cert\
?????文件???????15250??2014-04-30?08:56??JAVA接口包-升級版\cert\abc.truststore
?????文件?????????565??2006-02-14?16:43??JAVA接口包-升級版\cert\TrustPay.cer
?????目錄???????????0??2015-08-25?10:54??JAVA接口包-升級版\demo\
?????文件???????11712??2015-01-22?11:03??JAVA接口包-升級版\demo\AgentBatchPayment.html
?????文件???????11109??2015-08-24?14:04??JAVA接口包-升級版\demo\AgentBatchPayment.jsp
?????文件?????????802??2015-01-22?11:03??JAVA接口包-升級版\demo\AgentBatchPaymentQuery.html
?????文件????????3601??2015-08-24?14:04??JAVA接口包-升級版\demo\AgentBatchPaymentQuery.jsp
?????文件????????5425??2015-01-22?11:01??JAVA接口包-升級版\demo\AgentPayment.html
?????文件????????5792??2015-08-25?10:49??JAVA接口包-升級版\demo\AgentPayment.jsp
?????文件????????4420??2015-01-22?10:56??JAVA接口包-升級版\demo\AgentSignContract.html
?????文件????????3293??2015-08-24?14:05??JAVA接口包-升級版\demo\AgentSignContract.jsp
?????文件?????????691??2014-09-18?08:51??JAVA接口包-升級版\demo\AgentSignContractQuery.html
?????文件????????2818??2015-08-24?14:05??JAVA接口包-升級版\demo\AgentSignContractQuery.jsp
?????文件????????1429??2015-08-24?14:05??JAVA接口包-升級版\demo\AgentSignResult.jsp
?????文件????????1023??2014-11-21?09:44??JAVA接口包-升級版\demo\AgentUnsignContract.html
?????文件????????1812??2015-08-24?14:05??JAVA接口包-升級版\demo\AgentUnsignContract.jsp
?????文件????????1923??2015-08-24?14:05??JAVA接口包-升級版\demo\EBPPMerchantResult.jsp
?????文件????????4086??2015-08-24?14:05??JAVA接口包-升級版\demo\EBPPProcessQueryRequest.jsp
?????文件????????3521??2015-01-22?11:04??JAVA接口包-升級版\demo\IdentityVerify.html
?????文件????????2545??2015-08-24?14:05??JAVA接口包-升級版\demo\IdentityVerify.jsp
?????文件?????????954??2015-08-24?14:05??JAVA接口包-升級版\demo\IdentityVerifyResult.jsp
?????文件????????1963??2014-12-02?08:31??JAVA接口包-升級版\demo\Merchant.html
?????文件????????4331??2015-01-22?10:42??JAVA接口包-升級版\demo\MerchantBatchRefund.html
?????文件????????5212??2015-08-24?14:05??JAVA接口包-升級版\demo\MerchantBatchRefund.jsp
?????文件????????1260??2015-01-22?10:42??JAVA接口包-升級版\demo\MerchantBatchRefundQuery.html
............此處省略131個文件信息

評論

共有 條評論