Click here to Skip to main content
15,893,594 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Updated 27-Nov-12 20:39pm
v4

means checksum value which was generated by ccavenue on ur site did not match with present checksum value
 
Share this answer
 
Comments
akilkrv 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
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!
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900