传款易paydollar VISA 支付( 二 )

< secureHash.length; k++) {if (secureHash[k].indexOf(",") > 0) {String[] data = http://www.kingceram.com/post/secureHash[k].split(",");for (int j = 0; data != null & j < data.length; j++) {tempList.add(data[j]);}} else {tempList.add(secureHash[k]);}}}int size = tempList.size();if (size > 0) {secureHash = new String[size];for (int i = 0; i < size; i++) {secureHash[i] = (String) tempList.get(i);}}//解密的過程 end //會看到密鑰會讀取secureHashSecret.config裏面有個 SHA 哈希 , 這個 是 開發者加 secureHashSecret 密過程中 加岩(添加自定字符串)boolean verifyResult = PaydollarSecureUtil.verifyPaymentDatafeed(src, prc, successcode, ref,payRef, cur, amt, payerAuth, secureHash);if (verifyResult) {//匹配SHA1System.out.println("the same secureHash匹配SHA1成功");}else{System.out.println("not the same secureHash匹配SHA1失败");return;}//接下來就 根據流水帳號去查詢 , 處理數據信息String bankId = request.getParameter("Ref")==null?"": request.getParameter("Ref"); //流水帐号idString reqAmount = request.getParameter("Amt") == null ? "": request.getParameter("Amt");//总金额//最後完成後得通知銀行已處理 , 否者銀行那邊會再次請求看文檔是知己 put“ok” 就可以了PrintWriter pw1 = reponse.getWriter();pw1.write("OK");pw1.flush();pw1.close();}else {System.out.println("付款失敗");return;}}}
时间有点紧急忙写完
【传款易paydollarVISA 支付】项目源码以放 官网下载.jar 必须先申请 , 申请通过后才会给你单独发.jar 。这是申请链接: 开发指南api 文档任何问题欢迎留言