From 105e6282be419c730a290945c87826c0fda80f76 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Wed, 13 Oct 2021 16:47:53 +1100 Subject: [PATCH 1/2] logging --- app/Http/Middleware/QueryLogging.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Http/Middleware/QueryLogging.php b/app/Http/Middleware/QueryLogging.php index 0f126f7a45aa..4b08ad38ca44 100644 --- a/app/Http/Middleware/QueryLogging.php +++ b/app/Http/Middleware/QueryLogging.php @@ -36,9 +36,9 @@ class QueryLogging { // Enable query logging for development - // if (!Ninja::isHosted() || !config('beacon.enabled')) { - // return $next($request); - // } + if (!Ninja::isHosted() || !config('beacon.enabled')) { + return $next($request); + } $timeStart = microtime(true); DB::enableQueryLog(); @@ -52,7 +52,7 @@ class QueryLogging $timeEnd = microtime(true); $time = $timeEnd - $timeStart; - info("Query count = {$count}"); + // info("Query count = {$count}"); if($count > 175){ nlog("Query count = {$count}"); From 0836035e40baa22a9cb4ea649823be3ce9f632f0 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Wed, 13 Oct 2021 17:01:51 +1100 Subject: [PATCH 2/2] Minor fixes for Checkout.com --- app/PaymentDrivers/CheckoutCom/CreditCard.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/PaymentDrivers/CheckoutCom/CreditCard.php b/app/PaymentDrivers/CheckoutCom/CreditCard.php index 0cdc3c643b88..fd09cf1ce4f6 100644 --- a/app/PaymentDrivers/CheckoutCom/CreditCard.php +++ b/app/PaymentDrivers/CheckoutCom/CreditCard.php @@ -149,6 +149,12 @@ class CreditCard 'company_gateway_id' => $this->checkout->company_gateway->hashed_id, 'hash' => $this->checkout->payment_hash->hash, ]); + + $payment->{'failure_url'} = route('checkout.3ds_redirect', [ + 'company_key' => $this->checkout->client->company->company_key, + 'company_gateway_id' => $this->checkout->company_gateway->hashed_id, + 'hash' => $this->checkout->payment_hash->hash, + ]); } try {