mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-09-03 03:38:52 +00:00
Remove function
This commit is contained in:
@@ -110,12 +110,4 @@ class BtcPaymentController extends BasePageController
|
||||
|
||||
return response('OK', 200);
|
||||
}
|
||||
|
||||
public static function verify_webhook($data, $hmac_header): bool
|
||||
{
|
||||
// Calculate HMAC
|
||||
$calculated_hmac = base64_encode(hash_hmac('sha256', $data, config('nntmux.btcpay_webhook_secret'), true));
|
||||
|
||||
return hash_equals($hmac_header, $calculated_hmac);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user