summaryrefslogtreecommitdiffstats
path: root/sandbox/rfeng/scatours-creditcard-payment-web-contribution/src/main/webapp/creditcard.jsp
diff options
context:
space:
mode:
Diffstat (limited to 'sandbox/rfeng/scatours-creditcard-payment-web-contribution/src/main/webapp/creditcard.jsp')
-rw-r--r--sandbox/rfeng/scatours-creditcard-payment-web-contribution/src/main/webapp/creditcard.jsp8
1 files changed, 5 insertions, 3 deletions
diff --git a/sandbox/rfeng/scatours-creditcard-payment-web-contribution/src/main/webapp/creditcard.jsp b/sandbox/rfeng/scatours-creditcard-payment-web-contribution/src/main/webapp/creditcard.jsp
index 69409db313..d40f91eabf 100644
--- a/sandbox/rfeng/scatours-creditcard-payment-web-contribution/src/main/webapp/creditcard.jsp
+++ b/sandbox/rfeng/scatours-creditcard-payment-web-contribution/src/main/webapp/creditcard.jsp
@@ -43,8 +43,9 @@
</select> <br />
Card Number: <input type="text" name="cardNumber" /><br />
Card Holder: <input type="text" name="cardHolder" /><br />
-Amount: <input type="text" name="amount" /><br />
-<input type="submit" name="charge" value="Charge" /></form>
+Amount (EUR): <input type="text" name="amount" /><br />
+<p>
+<input type="submit" name="charge" value="Submit" /></form>
<%
String c = request.getParameter("charge");
@@ -59,8 +60,9 @@ Amount: <input type="text" name="amount" /><br />
PayerType ccOwner = objectFactory.createPayerType();
ccOwner.setName(request.getParameter("cardHolder"));
ccDetails.setCardOwner(ccOwner);
+ float amount = Float.parseFloat(request.getParameter("amount"));
%>
-<%=service.authorize(ccDetails, 100.0f)%>
+<%=service.authorize(ccDetails, amount)%>
<%
}
%>