From fd1c73c472c01562dfefd7dc7282e4fde44dff09 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Thu, 21 Feb 2019 15:53:07 +0200 Subject: [PATCH] Fix for GoCardless --- app/Ninja/PaymentDrivers/GoCardlessV2RedirectPaymentDriver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Ninja/PaymentDrivers/GoCardlessV2RedirectPaymentDriver.php b/app/Ninja/PaymentDrivers/GoCardlessV2RedirectPaymentDriver.php index d1d8163633a5..d2b8acf9ef71 100644 --- a/app/Ninja/PaymentDrivers/GoCardlessV2RedirectPaymentDriver.php +++ b/app/Ninja/PaymentDrivers/GoCardlessV2RedirectPaymentDriver.php @@ -110,7 +110,7 @@ class GoCardlessV2RedirectPaymentDriver extends BasePaymentDriver $calculatedSignature = hash_hmac('sha256', $rawPayload, $token); if (! hash_equals($providedSignature, $calculatedSignature)) { - throw new Exception('Signature does not match'); + throw new \Exception('Signature does not match'); } foreach ($input['events'] as $event) {