$mystring = $email.$amount.$payment_type.$callback_url; //concatenate these values
$mac = "DEuYGlVAg7BshwAhF7TQz4dGaifJ7KuuUrPEjgiT";
$hash = hash_hmac('sha512',$mystring,$mac, false);
$mystring = $reference.$type; //concatenate these values
$mac = "DEuYGlVAg7BshwAhF7TQz4dGaifJ7KuuUrPEjgiT";
$hash = hash_hmac('sha512',$mystring,$mac, false);