【发布时间】:2015-11-20 10:08:36
【问题描述】:
需要在基于java的技术中实现支付网关集成页面。
到目前为止,我有 index.html,它获取客户信息的详细信息,并被重定向到 EBS 支付网关(根据下面的代码 sn-p)。
这里是 index.html 页面的 sn-p
</head>
<body onload="a2()" style="background-color:lightgray; margin-left:300px; margin-right:300px; margin-top:0px;">
<center>
<div style="background-color:white;">
<form action="pay.jsp" method="post" name="frm" id="theForm" onsubmit="return validateForm()" autocomplete = "off" />
<input type="hidden" name="V3URL" value="https://secure.ebs.in/pg/ma/payment/request" />
<div>
<h1>EBS - JSP Version 3</h1>
///// 作为支付网关的响应,下面是代码(response.js):
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ page import="java.io.*,java.util.*" %>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>EBS Response</title>
</head>
<body>
<center>
<h2>EBS Response</h2>
<table width="50%" border="1" align="center">
<tr bgcolor="#949494">
<th>Response Parameter Name</th><th>Response Value</th>
</tr>
<%
Enumeration paramNames = request.getParameterNames();
while(paramNames.hasMoreElements()) {
String paramName = (String)paramNames.nextElement();
out.print("<tr><td>" + paramName + "</td>\n");
String paramValue = request.getParameter(paramName);
out.println("<td> " + paramValue + "</td></tr>\n");
}
%>
</table>
</center>
</body>
</html>
有表单验证码用于验证输入字段
使用 java 的 MessageDigest 在 pay.jsp 中实现安全性。(注意在 index.html sn-p 的第 5 行使用的 pay.jsp)
现在我不得不继续前进。我需要的是这个:
- 必须在 MySQL 表中更新响应数据
2.如何整合所有组件以获得完整的支付网关
【问题讨论】:
标签: javascript payment-gateway