From 9423dbdfff4a47ed7be5eb4bff9c050a6de4e2f4 Mon Sep 17 00:00:00 2001 From: Ankur Kumar Date: Mon, 1 May 2023 21:17:10 +0530 Subject: [PATCH] [3.x] feat: allow to customise the signature_method (#78) * feat: allow to customise the signature_method * Update VonageChannelServiceProvider.php --------- Co-authored-by: Taylor Otwell --- src/Vonage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Vonage.php b/src/Vonage.php index 5aefc1e..9369caa 100644 --- a/src/Vonage.php +++ b/src/Vonage.php @@ -80,7 +80,7 @@ public function client() $signatureCredentials = null; if ($signatureSecret = $this->config['signature_secret'] ?? null) { - $signatureCredentials = new SignatureSecret($this->config['api_key'], $signatureSecret); + $signatureCredentials = new SignatureSecret($this->config['api_key'], $signatureSecret, $this->config['signature_method'] ?? 'md5hash'); } if ($basicCredentials && $signatureCredentials) {