Ошибка при обработке запроса оплаты от Qiwi P2p
Так получаю хэш, но он не совпадает с получаемым, помогите, пожалуйста (и hash и hash_test не подходят)
$entity_body = file_get_contents('php://input');
$array_body = json_decode($entity_body, 1);
$money = $array_body['bill']['amount']['value'];
$vault = $array_body['bill']['amount']['currency'];
$id = $array_body['bill']['customFields']['payId'];
$billId = $array_body['bill']['billId'];
$status = $array_body['bill']['status']['value'];
$siteId = $array_body['bill']['siteId'];
$invoice_parameters = $vault.'|'.$money.'|'.$billId.'|'.$siteId.'|'.$status;
$hash = hash_hmac('SHA256', $invoice_parameters, ($secret));
$hash_test = hash_hmac('SHA256', $invoice_parameters, (base64_decode($secret)));