<%@ page language="java" session="true"%> <%@ include file="header.jsp" %>
<% String amount= (String)session.getAttribute("amount"); %>

Transaction Details

Amount <%=request.getParameter("amt") %>
Gateway Payment ID <%= request.getParameter("paymentId") %>
Post Date <%=request.getParameter("postdate")%>
Transaction Id <%=request.getParameter("ref")%>
PaymentRefId <%=request.getParameter("udf5")%>
Result <% if(request.getParameter("result").equals("CAPTURED") || request.getParameter("result").equals("APPROVED")) { %>
<%=request.getParameter("result") %> <% } else { %>
<%= request.getParameter("result") %> <% } %>


<% try { //java.net.URL basePath = new java.net.URL(pageContext.getServletContext().getResource("/") ,"/WEB-INF/wsdl/"); siebel.wsdl.TDNGatewayPaymentUpdate_Service service = new siebel.wsdl.TDNGatewayPaymentUpdate_Service(new java.net.URL(siebel.wsdl.TDNGatewayPaymentUpdate_Service.class.getResource("."), "TDNGatewayPaymentUpdate.WSDL"), new javax.xml.namespace.QName("http://siebel.com/CustomUI", "TDNGatewayPaymentUpdate")); siebel.wsdl.TDNGatewayPaymentUpdate port = service.getTDNGatewayPaymentUpdate(); // TODO initialize WS operation arguments here siebel.wsdl.TDNGatewayPaymentUpdateInput tdnGatewayPaymentUpdateInput = new siebel.wsdl.TDNGatewayPaymentUpdateInput(); // TODO process result here tdnGatewayPaymentUpdateInput.setConfirmationNumber(request.getParameter("auth")); tdnGatewayPaymentUpdateInput.setPaymentRowId(request.getParameter("paymentId")); tdnGatewayPaymentUpdateInput.setPaymentAmount(amount); tdnGatewayPaymentUpdateInput.setPaymentReference(request.getParameter("ref")); tdnGatewayPaymentUpdateInput.setObjectSpcId(request.getParameter("udf5")); tdnGatewayPaymentUpdateInput.setPaymentMessage(request.getParameter("udf1") + "/" + request.getParameter("tranid")); tdnGatewayPaymentUpdateInput.setErrorSpcCode(request.getParameter("result")); siebel.wsdl.TDNGatewayPaymentUpdateOutput result = port.tdnGatewayPaymentUpdate(tdnGatewayPaymentUpdateInput); out.println("Result = "+ result.getErrorSpcCode()); } catch (Exception ex) { // TODO handle custom exceptions here out.println(ex.getMessage()); } %>

Click to Print This Page
<%@ include file="footer.jsp" %>