How to make hash in Payumoney integration using php

$hash = ”; $hasTemp = $key.”|”.$txnid.”|”.$amount.”|”.$productinfo.”|”.$firstname.”|”.$email.”|”.$udf1.”|”.$udf2.”|”.$udf3.”|”.$udf4.”|”.$udf5.”|”.$udf6.”|”.$udf7.”|”.$udf8.”|”.$udf9.”|”.$udf10; $hasTemp .= “|”.$SALT; $hash = strtolower(hash(‘sha512’, $hasTemp)); Download All necessary document from PayUMoney Website https://www.payumoney.com/websiteintegration.html