See More
Popular Forum

MBA (4887) B.Tech (1769) Engineering (1486) Class 12 (1030) Study Abroad (1004) Computer Science and Engineering (988) Business Management Studies (865) BBA (846) Diploma (746) CAT (651) B.Com (648) B.Sc (643) JEE Mains (618) Mechanical Engineering (574) Exam (525) India (462) Career (452) All Time Q&A (439) Mass Communication (427) BCA (417) Science (384) Computers & IT (Non-Engg) (383) Medicine & Health Sciences (381) Hotel Management (373) Civil Engineering (353) MCA (349) Tuteehub Top Questions (348) Distance (340) Colleges in India (334)
See More

EBS Payment Gateway implementation in java based technology

General Tech Technology & Software

Max. 2000 characters



( 3 months ago )


Need to implement a payment gateway integrated page in java based technology.

So far I have index.html which gets details of customer info and that is getting redirected to EBS Payment Gateway (as per the code snippet below).

Here goes snippet of index.html page

<body onload="a2()" style="background-color:lightgray; margin-left:300px; margin-right:300px; margin-top:0px;">
        <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="" />

            <h1>EBS - JSP Version 3</h1>

///// As a response from the payment gateway following is the code(response.js) :

<%@page contentType="text/html" pageEncoding="UTF-8"%>
 <%@ page import="*,java.util.*" %>
<!DOCTYPE html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<title>EBS Response</title>
<h2>EBS Response</h2>
<table width="50%" border="1" align="center">
<tr bgcolor="#949494">
<th>Response Parameter Name</th><th>Response Value</th>
   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");

There is Formvalidation code for validating fields of entry

Security is implemented in pay.jsp using MessageDigest of java.(Get noticed the pay.jsp used in 5th line of the index.html snippet)

Now I am stuck to proceed further. What I need is this:

  1. the response data has to be updated in MySQL table

2.How to integrate all components to get the full fledged payment gateway

what's your interest