From e54a28b857cc4f016dba3d0f69c9668317fffe38 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Wed, 13 Mar 2024 16:57:22 +1100 Subject: [PATCH] Catch deleted / Archived gateways --- app/PaymentDrivers/Stripe/Jobs/PaymentIntentWebhook.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/PaymentDrivers/Stripe/Jobs/PaymentIntentWebhook.php b/app/PaymentDrivers/Stripe/Jobs/PaymentIntentWebhook.php index ea757faca88e4..6cca5ba8e3a0e 100644 --- a/app/PaymentDrivers/Stripe/Jobs/PaymentIntentWebhook.php +++ b/app/PaymentDrivers/Stripe/Jobs/PaymentIntentWebhook.php @@ -89,6 +89,10 @@ class PaymentIntentWebhook implements ShouldQueue } $company_gateway = CompanyGateway::query()->find($this->company_gateway_id); + + if(!$company_gateway) + return; + $stripe_driver = $company_gateway->driver()->init(); $charge_id = false;