. concatanates strings, like + in python.
Try:
import md5
msignature=md5.new(appid+orderid+ordercurr+orderamt+app_secret_key).hexdigest()

Regards, Martin
Am 05.06.2012 14:46 schrieb "Hassan Alnatour" <halna...@gardeniatelco.com>:

> Dear ALL ,
>
> i need help in translating this php code to python  , i dont understand
> the last line :
>
> <?
> // TYPE = OTHER OR SHOPPING CART (means fixed account)
>
>
> $mid = "";  // merchant ID
> $appid = ""; // application ID
> $orderid = ""; // merchant's order ID
> $app_secrect_key = ""; // from the product page
> $muid = ""; // merchant's user ID
> $ordercurr = "usd"; // merchant's order currency in small letters only
> $orderamt = 100;
> $orderamt = $orderamt . ".00"; // merchant's order amount
> $ordertext = "Product Name";
>
> $msignature =  md5($appid . $orderid . $ordercurr . $orderamt .
> $app_secrect_key);
>
> ?>
>
>
> best regards,
>

Reply via email to