Skip to content

Commit 3902a6e

Browse files
committed
Update Paystack.php: remove unnecessary Exception import
1 parent 5f4996f commit 3902a6e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Services/PaymentHandlers/Paystack.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace Damms005\LaravelMultipay\Services\PaymentHandlers;
44

5-
use stdClass;
65
use Carbon\Carbon;
76
use Illuminate\Support\Arr;
87
use Illuminate\Http\Request;
@@ -14,7 +13,6 @@
1413
use Damms005\LaravelMultipay\Webhooks\Contracts\WebhookHandler;
1514
use Damms005\LaravelMultipay\Exceptions\UnknownWebhookException;
1615
use Damms005\LaravelMultipay\ValueObjects\PaystackVerificationResponse;
17-
use Exception;
1816

1917
class Paystack extends BasePaymentHandler implements PaymentHandlerInterface
2018
{
@@ -205,7 +203,7 @@ protected function sendUserToPaymentGateway(string $redirect_or_callback_url, Pa
205203

206204
// status should be true if there was a successful call
207205
if (!$trx->status) {
208-
throw new Exception($trx->message);
206+
throw new \Exception($trx->message);
209207
}
210208

211209
$payment = Payment::where('transaction_reference', $payment->transaction_reference)

0 commit comments

Comments
 (0)