Hash Computation
All requests require a HMAC digest to be sent along with the payload. Find below the implementation for various languages.
PHP

For your initialize endpoint, use this
$mystring = $email.$amount.$payment_type.$callback_url; //concatenate these values
$mac = "DEuYGlVAg7BshwAhF7TQz4dGaifJ7KuuUrPEjgiT";
$hash = hash_hmac('sha512',$mystring,$mac, false);
For your verify endpoint:
$mystring = $reference.$type; //concatenate these values
$mac = "DEuYGlVAg7BshwAhF7TQz4dGaifJ7KuuUrPEjgiT";
$hash = hash_hmac('sha512',$mystring,$mac, false);
Last updated