Skip to content

Commit

Permalink
Merge pull request #15 from anoziere/feat/remove_api_check
Browse files Browse the repository at this point in the history
remove api check on "isPayPlugAvailable" which caused slowness issues
  • Loading branch information
anoziere committed May 2, 2024
2 parents 8104168 + 6d5c55e commit 47239bf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
2 changes: 1 addition & 1 deletion Config/module.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<language>en_US</language>
<language>fr_FR</language>
</languages>
<version>2.0.5</version>
<version>2.0.6</version>
<authors>
<author>
<name>Vincent Lopes-Vicente</name>
Expand Down
8 changes: 0 additions & 8 deletions Service/PaymentService.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace PayPlugModule\Service;

use Payplug\Notification;
use Payplug\Payment;
use Payplug\Payplug;
use PayPlugModule\Event\PayPlugPaymentEvent;
use PayPlugModule\Model\OrderPayPlugMultiPayment;
Expand Down Expand Up @@ -33,13 +32,6 @@ public function isPayPlugAvailable()
return false;
}

// Check API availability
try {
Payment::listPayments(1);
} catch (\Exception $exception) {
return false;
}

return true;
}

Expand Down

0 comments on commit 47239bf

Please sign in to comment.