Skip to content

Commit

Permalink
Merge pull request #17 from dystcz/fix/fix-finding-order
Browse files Browse the repository at this point in the history
Fix: Fail after all attempts to find order fail
  • Loading branch information
repl6669 authored Dec 10, 2024
2 parents f85a99a + 4783b16 commit 3316a10
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Jobs/Webhooks/WebhookHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,23 +82,23 @@ protected function findOrder(PaymentIntentContract $paymentIntent): Order

return $order;
} catch (Throwable $e) {
$this->fail($e);
// $this->fail($e);
}

try {
$order = App::make(FindOrderByTransaction::class)($paymentIntent);

return $order;
} catch (Throwable $e) {
$this->fail($e);
// $this->fail($e);
}

try {
$order = App::make(FindOrderByCartIntent::class)($paymentIntent);

return $order;
} catch (Throwable $e) {
$this->fail($e);
// $this->fail($e);
}

$this->fail(new ModelNotFoundException('Order not found.'));

Check failure on line 104 in src/Jobs/Webhooks/WebhookHandler.php

View workflow job for this annotation

GitHub Actions / phpstan

Method Dystcz\LunarApiStripeAdapter\Jobs\Webhooks\WebhookHandler::findOrder() should return Lunar\Models\Order but return statement is missing.

Check failure on line 104 in src/Jobs/Webhooks/WebhookHandler.php

View workflow job for this annotation

GitHub Actions / phpstan

Method Dystcz\LunarApiStripeAdapter\Jobs\Webhooks\WebhookHandler::findOrder() should return Lunar\Models\Order but return statement is missing.
Expand Down

0 comments on commit 3316a10

Please sign in to comment.