%@ page import="java.util.*" %> <%@ page import="java.net.*" %> <%@ page import="java.io.*" %> <% // read post from PayPal system and add 'cmd' Enumeration en = request.getParameterNames(); String str = "cmd=_notify-validate"; while(en.hasMoreElements()){ String paramName = (String)en.nextElement(); String paramValue = request.getParameter(paramName); str = str + "&" + paramName + "=" + URLEncoder.encode(paramValue); } // post back to PayPal system to validate // NOTE: change http: to https: in the following URL to verify using SSL (for increased security). // using HTTPS requires either Java 1.4 or greater, or Java Secure Socket Extension (JSSE) // and configured for older versions. URL u = new URL("https://www.paypal.com/cgi-bin/webscr"); URLConnection uc = u.openConnection(); uc.setDoOutput(true); uc.setRequestProperty("Content-Type","application/x-www-form-urlencoded"); PrintWriter pw = new PrintWriter(uc.getOutputStream()); pw.println(str); pw.close(); BufferedReader in = new BufferedReader( new InputStreamReader(uc.getInputStream())); String res = in.readLine(); in.close(); // assign posted variables to local variables String itemName = request.getParameter("item_name"); String itemNumber = request.getParameter("item_number"); String paymentStatus = request.getParameter("payment_status"); String paymentAmount = request.getParameter("mc_gross"); String paymentCurrency = request.getParameter("mc_currency"); String txnId = request.getParameter("txn_id"); String receiverEmail = request.getParameter("receiver_email"); String payerEmail = request.getParameter("payer_email"); check notification validation if(res.equals("VERIFIED")) { // check that paymentStatus=Completed // check that txnId has not been previously processed // check that receiverEmail is your Primary PayPal email // check that paymentAmount/paymentCurrency are correct // process payment } else if(res.equals("INVALID")) { // log for investigation } else { // error } %>

Technology at its best Technology at its best Technology at its best Technology at its best Technology at its best
Technology at its best Technology at its best Technology at its best. Tech at the best it can get, brought to you.

Engineering Information Center provides online advertising solutions through a proprietary network of publishers, specializing in performance-driven result-based marketing. We offer net30 payouts, real time stats and the highest paying exclusive offers for your website, newsletter or email marketing business. Turn your traffic into cash with www.Seeico.co.cc Seeico.co.cc is a trusted and well known affiliate network that always guarantees payment on time. They have over a 100 different offers for you to choose from with many HIGH paying exclusives.

Engineering Information Center provides online advertising solutions through a proprietary network of publishers, specializing in performance-driven result-based marketing. We offer net30 payouts, real time stats and the highest paying exclusive offers for your website, newsletter or email marketing business. Turn your traffic into cash with www.Seeico.co.cc Seeico.co.cc is a trusted and well known affiliate network that always guarantees payment on time. They have over a 100 different offers for you to choose from with many HIGH paying exclusives.
Our Site Engineering Information Center provides online advertising solutions through a proprietary network of publishers, specializing in performance-driven result-based marketing. We offer net30 payouts, real time stats and the highest paying exclusive offers for your website, newsletter or email marketing business. Turn your traffic into cash with
is a trusted and well known affiliate network that always guarantees payment on time. They have over a 100 different offers for you to choose from with many HIGH paying exclusives.