Skip to content

Commit 4214c78

Browse files
authored
Merge pull request #11 from NicolasBarbey/main
Disable payment if total amount is less than 1
2 parents cd11553 + 014a557 commit 4214c78

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

PayPlugModule.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@ public function update($currentVersion, $newVersion, ConnectionInterface $con =
6060

6161
public function isValidPayment()
6262
{
63+
if ($this->getCurrentOrderTotalAmount() < 1) {
64+
return false;
65+
}
66+
6367
/** @var PaymentService $paymentService */
6468
$paymentService = $this->container->get('payplugmodule_payment_service');
6569
return $paymentService->isPayPlugAvailable();

0 commit comments

Comments
 (0)