RE: [PHP] MD5->PHP how?

From: Date: Sun, 20 Apr 2003 15:26:34 +0000
Subject: RE: [PHP] MD5->PHP how?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-144544@lists.php.net to get a copy of this message
> > I think all they mean is > > > > $md5_hash = md5("tango" . $seller_number . $order_number . $amount); > > > > Then you pass that hash and values to your checkout and verify > > everything matches on the other end. > > > > Easier to just use sessions, though, IMO. > > I will be getting the hash value from 2checkout, I am not creating and > sending the hash to them. > How do i compare it in my script which will be recieving the value from > 2Checkout? You still create the hash on your side and compare what was sent from 2checkout. You have the seller number, order number, and amout values right? And you know what the secret word is... So you create the $md5_hash as shown above and compare it to what was sent. If they match, then proceed. ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/

« previous php.general (#144544) next »