Click here to Skip to main content
12,814,411 members (34,337 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

    here code fro activating item..

    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 21:06pm
Updated 27-Nov-12 21:39pm
Rate this: bad
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
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
Please Sign up or sign in to vote.

Solution 4

Quoting from the site:[^]

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!

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
Web01 | 2.8.170308.1 | Last Updated 28 Nov 2012
Copyright © CodeProject, 1999-2017
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