[insert_php]
date_default_timezone_set(‘Asia/Kolkata’);
function getDateTime() {
$dateTime= date(‘Y:m:d-H:i:s’);
return $dateTime;
}
function createHash($chargetotal,$Currency) {
// Please change the store Id to your individual Store ID
$storeId = “3396028998”;
// NOTE: Please DO NOT hardcode the secret in that script. For example read it from a database.
$sharedSecret = “\>LDuzoXTT7l”;
$stringToHash = $storeId . getDateTime() . $chargetotal . $Currency . $sharedSecret;
$ascii = bin2hex($stringToHash);
return sha1($ascii);
}
[/insert_php]