Skip to content

Request Hash Test (hashDataV2)

You must create and send the relevant hash with every request you send to paynkolay. The hash is calculated using the methods below. You can get your unique sx and merchantSecretKey information from your panel.

You can test the hash calculation process using the form below:

When you post the hash value to us along with other parameters, we hash the same values. If the hash you send matches the hash we generate, we confirm that the request came from you.

example.php
$hashstr = $sx."|".$clientRefCode."|".$amount."|".$successUrl."|".$failUrl."|".$rnd."|".$customerKey."|".$merchantSecretKey;
$hash = mb_convert_encoding($hashstr, 'UTF-8');
$hashedBytes = hash("sha512", $hash, true);
$HashDatav2 = base64_encode($hashedBytes);
example.php
$hashstr = $sx."|".$referenceCode."|".$type."|".$amount."|".$trxDate."|".$merchantSecretKey;
$hash = mb_convert_encoding($hashstr, 'UTF-8');
$hashedBytes = hash("sha512", $hash, true);
$HashDatav2 = base64_encode($hashedBytes);
example.php
$hashstr = $sx."|".$startDate."|".$endDate."|".$clientRefCode."|".$merchantSecretKey;
$hash = mb_convert_encoding($hashstr, 'UTF-8');
$hashedBytes = hash("sha512", $hash, true);
$HashDatav2 = base64_encode($hashedBytes);
example.php
$hashstr = $sx."|".$full_name."|".$email."|".$gsm."|".$amount."|".$link_expiration_time."|".$merchantSecretKey;
$hash = mb_convert_encoding($hashstr, 'UTF-8');
$hashedBytes = hash("sha512", $hash, true);
$HashDatav2 = base64_encode($hashedBytes);
example.php
$hashstr = $sx."|".$gsm."|".$amount."|".$clientRefCode."|".$merchantSecretKey;
$hash = mb_convert_encoding($hashstr, 'UTF-8');
$hashedBytes = hash("sha512", $hash, true);
$HashDatav2 = base64_encode($hashedBytes);

Creating Hash for Recurring Payment Cancellation

Section titled “Creating Hash for Recurring Payment Cancellation”
example.php
$hashstr = $sx."|".$InstructionNumber."|".$merchantSecretKey;
$hash = mb_convert_encoding($hashstr, 'UTF-8');
$hashedBytes = hash("sha512", $hash, true);
$HashDatav2 = base64_encode($hashedBytes);

Saving a Card:

$hashstr = $sx."|".$cardNumber."|".$cvv."|".$merchantSecretKey;

Listing Saved Cards:

$hashstr = $sx."|".$customerKey."|".$merchantSecretKey;

Deleting Saved Cards:

$hashstr = $sx."|".$customerKey."|".$tranId."|".$token."|".$merchantSecretKey;

Processing Payment from Saved Card:

$hashstr = $sx."|".$clientRefCode."|".$amount."|".$successUrl."|".$failUrl."|".$rnd."|".$csCustomerKey."|".$merchantSecretKey;