Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NETC#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
akilkrv446
Edited 27-Nov-12 20:39pm
Ankur\m/48.9K
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 at 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
Your Filters
Interested
Ignored
     
0 Sergey Alexandrovich Kryukov 367
1 thatraja 220
2 OriginalGriff 205
3 Abhinav S 166
4 CPallini 160
0 Sergey Alexandrovich Kryukov 8,849
1 OriginalGriff 5,035
2 Peter Leow 3,949
3 Maciej Los 3,535
4 Abhinav S 3,148


Advertise | Privacy | Mobile
Web03 | 2.8.140415.2 | Last Updated 28 Nov 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Use
Layout: fixed | fluid