-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
Всем привет пытаюсь проверить хеш с заголовка
выдает false
$billPayments = new BillPayments(env("QIWI_SECRET"));
$head = getallheaders();
$sha256_hash_header = $head['X-Api-Signature-Sha256'];
$notificationData = [
'bill' => [
'siteId' => $request->input('bill.siteId'),
'billId' => $request->input('bill.billId'),
'amount' => [
'value' => $request->input('bill.amount.value'),
'currency' => $request->input('bill.amount.currency')
],
'status' => [
'value' => $request->input('bill.status.value')
]
],
'version' => $request->input('version')
];
$check = $billPayments->checkNotificationSignature(
$sha256_hash_header, $notificationData, base64_decode(env("QIWI_SECRET"))
);
Результат
$check === false;
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels