问题描述
CCAvenue是电子商务网站中使用的支付网关.
我已经将CcAvenue包含在我的网站上用于在线购物.在此过程中,我已将订单ID和商人ID发送到CCAvenue站点.付款处理完成后,他们将返回AuthDESC,CheckSum,OrderID和Amoumt.
使用这些值,他们正在调用verifychecksum方法
此方法返回true
在这种情况下,我有
两个条件
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
推荐答案
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!
这篇关于通道校验和值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!