php script to generate checksum from md5
Posted
by sumit
on Stack Overflow
See other posts from Stack Overflow
or by sumit
Published on 2010-06-16T19:08:01Z
Indexed on
2010/06/16
20:42 UTC
Read the original article
Hit count: 176
php
In order to calculate the checksum i need following things. these parameters are concatenated in a constant (no spaces) string made up of the values of the following parameters in the exact order listed below: o Secret Key o Merchant id o Currency o Total amount o Item list (item_name_1, Item_amount_1, item_quantity_1 to item_name_N, Item_amount_N, item_quantity_N) o Timestamp
e.g In that case the string befor hash will be: pLAZdfhdfdNh57583USD69.99Tier2 item69.9912010-06-14.14:34:33
And using the MD5 hash function the result is: ghvsaf764t3w784tbjkegbjhdbgf
i want to know how can i create a php script that will call md5 hash function with the inputs given above and based on that it will generate the hash function value that will be the checksum value for my coding..
© Stack Overflow or respective owner