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}"); 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 {