Verotel requires some data to be hashed with sha1_hex function. What exactly is it? No info about it in the whole internet. They say "SHA-1 hash is used (hexadecimal output)". Sha1 with hex output?
Heres one example which I can't seem to reproduce:
sha1_hex("abc777X:description=some description of product:priceAmount=51.20:priceCurrency=EUR:shopID=60678:version=1")
= 04d87d2718767ea0bef259c436ec63e3cde05be2
echo sha1('abc777X:description=some description of product:priceAmount=51.20:priceCurrency=EUR:shopID=60678:version=1');
Actually, that sha1_hex
is named sha1()
in php. Here is an example, working on your input: http://codepad.org/9fLlr9VJ
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With