Callback response

Fields

{
  "currency": "USDT-TRC20",
  "id": "3557",
  "status": "SUCCESS",
  "sum": "10",
  "sum_currency": "11",
  "verify_hash": "******************************",
}

id - transaction ID

sum - total amount in QSTN

sum_currency - total amount in currency

status - transaction status (only "SUCCESS" or "CANCEL")

currency

verify_hash - encrypted client api key

Example of decrypting a key in PHP:

$data = Yii::$app->request->post();
unset($data['verify_hash']);
ksort($data);
$dataString = serialize($data);
$checkKey = hash_hmac('sha1', $dataString, /* Your api key */);

if ($checkKey != Yii::$app->request->post('verify_hash')) {
  // Verification failed verification
}

Last updated