2checkout MD5 problem (Solved)
| From: | Ryan A | Date: | Mon, 28 Apr 2003 01:32:23 +0000 |
| Subject: | 2checkout MD5 problem (Solved) | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-145460@lists.php.net to get a copy of this message | ||
Hiya people,
Finally after slogging over the code and sending the 2checkout people 20
emails (nice people but just dont know much) I figured this out and the damn
thing actually works...
Am just posting it here so that someone sometime may need this and wont have
to go through what i went through.
<?php
$secret="seCrets"; // put your secret word here
$seller_id="69778"; // put your store id here
$compare2c =
strtoupper(md5("$secret"."$seller_id"."$order_number"."$total"));
echo '<br>C1 is :'.$compare2c;
echo '<br><b>Key :</b>'.$key;
if($key==$compare2c)
{print "<br>It works!";}
else{print "<br>nope, problem.";}
?>
If anybody finds this useful anytime in the future just drop me a line
telling me so.
Cheers,
-Ryan