Skip to content

Commit

Permalink
Update Paystack.php: remove unnecessary Exception import
Browse files Browse the repository at this point in the history
  • Loading branch information
damms005 committed Oct 25, 2024
1 parent 5f4996f commit 3902a6e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Services/PaymentHandlers/Paystack.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace Damms005\LaravelMultipay\Services\PaymentHandlers;

use stdClass;
use Carbon\Carbon;
use Illuminate\Support\Arr;
use Illuminate\Http\Request;
Expand All @@ -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
{
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 3902a6e

Please sign in to comment.