Ответ на обратный вызов
Поля
{
"currency": "USDT-TRC20",
"id": "3557",
"status": "SUCCESS",
"sum": "10",
"sum_currency": "11",
"verify_hash": "******************************",
}id - идентификатор транзакции
sum - общая сумма в QSTN
sum_currency - общая сумма в валюте
status - статус транзакции (только "SUCCESS" или "CANCEL")
currency
verify_hash - зашифрованный ключ API клиента
Пример расшифровки ключа на 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