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; - } }