Skip to content

Commit 47239bf

Browse files
authored
Merge pull request #15 from anoziere/feat/remove_api_check
remove api check on "isPayPlugAvailable" which caused slowness issues
2 parents 8104168 + 6d5c55e commit 47239bf

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

Config/module.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<language>en_US</language>
1818
<language>fr_FR</language>
1919
</languages>
20-
<version>2.0.5</version>
20+
<version>2.0.6</version>
2121
<authors>
2222
<author>
2323
<name>Vincent Lopes-Vicente</name>

Service/PaymentService.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
namespace PayPlugModule\Service;
44

55
use Payplug\Notification;
6-
use Payplug\Payment;
76
use Payplug\Payplug;
87
use PayPlugModule\Event\PayPlugPaymentEvent;
98
use PayPlugModule\Model\OrderPayPlugMultiPayment;
@@ -33,13 +32,6 @@ public function isPayPlugAvailable()
3332
return false;
3433
}
3534

36-
// Check API availability
37-
try {
38-
Payment::listPayments(1);
39-
} catch (\Exception $exception) {
40-
return false;
41-
}
42-
4335
return true;
4436
}
4537

0 commit comments

Comments
 (0)