# This is code sending credit card authorization to authorize.net.  I think I have the post of the data set, but I need help handling the receiving of the response.

#

# The tutorial is here if you want to look at it:  http://www.devshed.com/Server_Side/Administration/CREDIT/

#

#<jsp:useBean id="CreditCardAuthJspBeanId" scope="session" class="creditcardauth.CreditCardAuthJspBean" />

#<jsp:setProperty name="CreditCardAuthJspBeanId" property="*" />

#<jsp:useBean id="CreditCardAuthResultsJspBeanId" scope="session" class="creditcardauth.CreditCardAuthResultsJspBean" />

#<jsp:setProperty name="CreditCardAuthResultsJspBeanId" property="*" />

#<body bgcolor="#ffffc0">

#<h1>

#JBuilder Generated JSP

#</h1>

#<form method="post" action="https://www.authorize.net/gateway/transact.dll">

#<br><input type="text" name="x_Login" value="testing"><br>

#<br>Enter Credit Card #  :   <input type="text" name="x_Card_Num" value="4222222222222222"><br>

#<br>Enter Expiration Date  :  <input type="text" name="x_Exp_Date" value="12-01"><br>

#<br>Enter Transaction Amount  :  <input type="text" name="x_Amount" value="1.00"><br>

#<br><input type="hidden" name="x_ADC_Relay_Response" value="True"><br>

#<br><input type="hidden" name="x_ADC_URL" value="http://192.168.0.3/CreditCardAuth/defaultroot/CreditCardAuthJsp.jsp"><br>

#<br><input type="hidden" name="x_Version" value="3.0"><br>

#<br><br>

#<input type="submit" name="Submit" value="Submit">

#<input type="reset" value="Reset">

#<br>

#Value of Bean property is :<jsp:getProperty name="CreditCardAuthJspBeanId" property="sample" />

#CreditCardAuthJspBean.result(int x_response_code, int x_card_num, int x_amount, String x_response_reason_text)

 

Reply via email to