From 6d5c55e96573298622de20a5e281465a362dfd13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexandre=20Nozi=C3=A8re?= Date: Thu, 2 May 2024 21:20:05 +0200 Subject: [PATCH] remove api check on "isPayPlugAvailable" which caused slowness issues --- Config/module.xml | 2 +- Service/PaymentService.php | 8 -------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/Config/module.xml b/Config/module.xml index 4676ab7..41a210f 100755 --- a/Config/module.xml +++ b/Config/module.xml @@ -17,7 +17,7 @@ en_US fr_FR - 2.0.5 + 2.0.6 Vincent Lopes-Vicente diff --git a/Service/PaymentService.php b/Service/PaymentService.php index 1962fcb..c81052f 100755 --- a/Service/PaymentService.php +++ b/Service/PaymentService.php @@ -3,7 +3,6 @@ namespace PayPlugModule\Service; use Payplug\Notification; -use Payplug\Payment; use Payplug\Payplug; use PayPlugModule\Event\PayPlugPaymentEvent; use PayPlugModule\Model\OrderPayPlugMultiPayment; @@ -33,13 +32,6 @@ public function isPayPlugAvailable() return false; } - // Check API availability - try { - Payment::listPayments(1); - } catch (\Exception $exception) { - return false; - } - return true; }