Skip to main content

Setting up ClickBank Instant Notification Url (Java/JSP)

It is easy to set-up ClickBank instant notification url. The Instant Notification service that notifies you of transactions within the ClickBank system for your account. It sends data in a near real-time fashion for the following action types:
Cancel Rebill

The service attempts to post information via HTML FORM POST to a URL specified by you. Each post contains a group of URL Parameters relevant to the transaction. To prevent fraud, one of the parameters, the cverify field, is used to verify the validity of the other fields.
Check this url for more details on this service.
Now, how do you differentiate a request from ClickBank and from a hacker? ClickBank sends us a parameter "cverify" which is a sha1, or a hash of the values passed, including your Secret Key. Generate sha with the parameters received and compare it with the one received from the request. If they are identical, the request is valid else ignore the request.
Find below the code written in Java which sends a mail on successful SALE.
public boolean isIpnValid(HttpServletRequest request) throws Exception{
   String secretKey = "YOURSECRETKEY";
   String mySha = org.apache.commons.codec.digest.DigestUtils.shaHex(request.getParameter("ccustname") + "
" + request.getParameter("ccustemail") + "
" + request.getParameter("ccustcc") + "
" + request.getParameter("ccuststate") + "
" + request.getParameter("ctransreceipt") + "
" + request.getParameter("cproditem") + "
" + request.getParameter("ctransaction") + "
" + request.getParameter("ctransaffiliate") + "
" + request.getParameter("ctranspublisher") + "
" + request.getParameter("cprodtype") + "
" + request.getParameter("cprodtitle") + "
" + request.getParameter("ctranspaymentmethod") + "
" +request.getParameter("ctransamount") + "
" + request.getParameter("caffitid") + "
" + request.getParameter("cvendthru") + "
" + secretKey);
mySha = mySha.substring(0, 8);
mySha = mySha.toUpperCase();
String expectedCVerify = request.getParameter("cverify");
return mySha.equals(expectedCVerify);
If this function returns true, send a mail to the customer else ignore the request.
Feel free to post your comments and suggestions. All the best with your ClickBank account!


  1. Nice information. I was searching for the same. It helped me alot and saved my time. Thanks alot. servicenow training in hyderabad ,splunk training in hyderabad


Post a Comment

Did you enjoy this post? Why not leave a comment below and continue the conversation, or subscribe to our feed and get articles like this delivered automatically to your feed reader? Like our Facebook Page.


HDFC Bank introduces Missed Call Service to know Account Balance

Missed call is a powerful business tool in developing countries like India where customers give a miss call to specific phone numbers for getting account details, providing feedback, voting etc. On receiving a missed call from a registered phone number, the underlying app performs a phone number lookup and sends the data to the caller via text message(SMS) or records the call details for future processing.HDFC Bank recently introduced missed call service for its retail customers which allows to retrieve bank account details, mini statement etc. by simply giving a miss call to their toll free numbers.Following services are now available: 1800 270 3333 - Account Balance 1800 270 3355 - Mini Statement 1800 270 3366 - Request for new Cheque Book 1800 270 3377 - Request for Bank account statement Also you can download HDFC Mobile Banking Application by giving a missed call to : 1800 270 3344. Other banks providing missed call serviceAxis bank(known as Axis Dial) - 09225892258Bank of India…

Induction Cooker Showing an Error Code? Induction Cooker Error Codes Explained

Are you searching for Induction Cook-top error codes? Here you can find the error codes of all popular induction cooktops and how to troubleshoot it.

These are for your reference only, do not try to open your cooktop without proper safety measures, we advise you to call the service person if any servicing is needed.

If you want to know how Induction Cook-top works, read our previous article titled What is Induction Cooker? How Induction Cooker Works?.

Whirlpool Induction Cooker Error CodesError CodeErrorSolutionF0An internal error was detected.Disconnect power. Wait 5 seconds before reconnecting power. If the symbol appears again, call for service.F2The surface cooking area is too hot and has turned off.Remove the pans from the surface cooking area. "F2" will disappear when the surface cooking area has cooled. If you turn the surface cooking area back on and "F2" reappears, the cooktop is still too hot. Turn off the surface cooking area and allow it to cool.F4The po…

Income Tax Return eFiling - Must Know Facts

Income Tax filing is a legal obligation of every citizen of India whose total income of the previous year exceeds the limit defined by the IT law. Thanks to Information Technology, now you can file your tax return online via or third party services such as, etc.(Refer list of e-filing portals below). Income Tax Department has received a record number of 1.64 crores e-Returns in the F.Y. 2011-12.

You need to file the return on or before 31st of July of the assessment year. This article does not provide information on how to file your tax but the steps to follow after filing your returns.

Once you are done with the Income Tax e-filing, the acknowledgement form will be available for download normally in 2-7 days depends on the portal through which you filed your return. You need to download, sign and send the Income Tax Return Verification Form(ITR-V) to the Income Tax department within 120 days of submission via ordinar…