From 3902a6e4b3abf3c082afb8958e592c68b5148557 Mon Sep 17 00:00:00 2001 From: Damilola Olowookere Date: Fri, 25 Oct 2024 14:15:49 +0100 Subject: [PATCH] Update Paystack.php: remove unnecessary Exception import --- src/Services/PaymentHandlers/Paystack.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Services/PaymentHandlers/Paystack.php b/src/Services/PaymentHandlers/Paystack.php index 39e5ec0..f06a296 100644 --- a/src/Services/PaymentHandlers/Paystack.php +++ b/src/Services/PaymentHandlers/Paystack.php @@ -2,7 +2,6 @@ namespace Damms005\LaravelMultipay\Services\PaymentHandlers; -use stdClass; use Carbon\Carbon; use Illuminate\Support\Arr; use Illuminate\Http\Request; @@ -14,7 +13,6 @@ use Damms005\LaravelMultipay\Webhooks\Contracts\WebhookHandler; use Damms005\LaravelMultipay\Exceptions\UnknownWebhookException; use Damms005\LaravelMultipay\ValueObjects\PaystackVerificationResponse; -use Exception; class Paystack extends BasePaymentHandler implements PaymentHandlerInterface { @@ -205,7 +203,7 @@ protected function sendUserToPaymentGateway(string $redirect_or_callback_url, Pa // status should be true if there was a successful call if (!$trx->status) { - throw new Exception($trx->message); + throw new \Exception($trx->message); } $payment = Payment::where('transaction_reference', $payment->transaction_reference)