Skip to content

Commit 014a557

Browse files
author
nbarbey-os-alter
committed
Disable payment if total amount is less than 1
1 parent cd11553 commit 014a557

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)