Small fix

This commit is contained in:
shimon
2022-06-08 10:20:54 +03:00
parent 64ba33f3aa
commit dea03f5396
+2 -2
View File
@@ -8,8 +8,8 @@ use Tests\E2E\Client;
trait WebhooksBase
{
public static function getWebhookSignature($webhook, $signatureKey) :string
{;
public static function getWebhookSignature($webhook, $signatureKey): string
{
$payload = json_encode($webhook['data']);
$url = $webhook['url'];
return base64_encode(hash_hmac('sha1', $url . $payload, $signatureKey, true));