Click here to Skip to main content
12,298,927 members (52,770 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C# ASP.NET C#4.0
CCAvenue is a payment gateway used in eCommerce websites.
I have included CcAvenue in my website for online shopping. In this process I have sent orderid and merchantID to CCAvenue site. After payment processing they will return AuthDESC, CheckSum, OrderID, Amoumt.

with these values they are calling verifychecksum method
this method is returning true

in this case i have

two conditions

condition1:if(AuthDEC="Y"&&CheckSUm="True")
{
    here code fro activating item..
}
 
if(AUTHDESC="N"&&CHecksum="True")
{
    here transction is declained.
}
 
if(AuthDESC=="Y" Checksum="false")
{
    transaction is declained...
}

why this check sum value is false.i mean in what cases it is become false.

please any body give solution

Thanks & Regards
Posted 27-Nov-12 20:06pm
akilkrv466
Edited 27-Nov-12 20:39pm
Ankur\m/50.4K
v4
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

means checksum value which was generated by ccavenue on ur site did not match with present checksum value
  Permalink  
Comments
umenderreddy 28-Nov-12 2:35am
   
hi shreyanshs Thank you for your answer.but checksum value did not match means what .in what case it will not match
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 4

Quoting from the site: http://www.ccavenue.com/demo_ccav/integrate2.htm[^]

The Real Time Success Failure Feature works on the basis of Checksum verification. The Checksum refers to a random numeric string generated using a mathematical algorithm (a complex quadratic equation) to ensure that data is not tampered along the way. The way it works is lets say a message has to be sent from A to B. A and B both mutually agree on a Key that only both of them possess. A checksum is calculated with a mathematical function using the parameters passed and the Key as input. This checksum is then sent along with the message to point B. B then recalculates this checksum using the Key and the same algorithm. If the checksum that B calculates is different from the checksum that A has passed then the data has been tampered with along the way.

Hope this helps!
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160525.2 | Last Updated 28 Nov 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100