I am having a scenario where I get response from payment gateway in which I have total.
Like 1250.00. Now I cross check this total with my cart value which I get from database.
Issue is some time
if($cartTotal == $paymentTotal)
fails most of the time it works but for certain times it fail. I am not sure whats the Issue.
I have tried trim, type casting, === strcmp but somehow it fails for certain transactions. I have type casted the values to int, float, string.
Can anybody point me in right direction ? Any help is much appreciated.