From d965485919546db919532c084cd6542783878a0d Mon Sep 17 00:00:00 2001 From: David Bomba Date: Wed, 15 Dec 2021 07:42:20 +1100 Subject: [PATCH] Get archived payment gateway --- app/Http/Requests/Payments/PaymentWebhookRequest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Requests/Payments/PaymentWebhookRequest.php b/app/Http/Requests/Payments/PaymentWebhookRequest.php index 5aac0825e4..ef805d1367 100644 --- a/app/Http/Requests/Payments/PaymentWebhookRequest.php +++ b/app/Http/Requests/Payments/PaymentWebhookRequest.php @@ -47,7 +47,7 @@ class PaymentWebhookRequest extends Request */ public function getCompanyGateway() { - return CompanyGateway::findOrFail($this->decodePrimaryKey($this->company_gateway_id)); + return CompanyGateway::withTrashed()->findOrFail($this->decodePrimaryKey($this->company_gateway_id)); } /**