From a6fe7cd326b669d8bc3ad59f4a43fb69e4b121bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=2E=20Nagy=20Gerg=C5=91?= Date: Sat, 13 Jan 2024 23:10:22 +0100 Subject: [PATCH] cleanup --- src/BazarServiceProvider.php | 2 +- src/Gateway/Driver.php | 20 -------------------- 2 files changed, 1 insertion(+), 21 deletions(-) diff --git a/src/BazarServiceProvider.php b/src/BazarServiceProvider.php index 020568f8..51d03a94 100644 --- a/src/BazarServiceProvider.php +++ b/src/BazarServiceProvider.php @@ -73,7 +73,7 @@ protected function registerRoutes(): void ->prefix('bazar') ->as('bazar.') ->group(function (): void { - $this->loadRoutesFrom(__DIR__.'/../routes/auth.php'); + $this->loadRoutesFrom(__DIR__.'/../routes/web.php'); }); } diff --git a/src/Gateway/Driver.php b/src/Gateway/Driver.php index e776be47..1cc0adad 100644 --- a/src/Gateway/Driver.php +++ b/src/Gateway/Driver.php @@ -159,33 +159,13 @@ public function capture(Request $request, Order $order): Order return $order; } - /** - * Resolve the order model for notification. - */ - public function resolveOrderForNotification(Request $request): Order - { - return Order::proxy()->newQuery()->where('uuid', $request->input('order'))->firstOrFail(); - } - /** * Handle the notification request. */ public function handleNotification(Request $request): Response { - $order = $this->resolveOrderForNotification($request); - - $this->notification($request, $order); - return (new Response())->respondWith(function (string $url, array $data): HttpResponse { return new HttpResponse('', HttpResponse::HTTP_NO_CONTENT); }); } - - /** - * Update the order update after the notification. - */ - public function notification(Request $request, Order $order): Order - { - return $order; - } }