Skip to content

Commit 9ce78ec

Browse files
committed
Fix setPaymentAmount storing amount when condition is inverted
1 parent 4ea0300 commit 9ce78ec

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/elements/Order.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2459,7 +2459,7 @@ public function setPaymentAmount(float $amount): void
24592459
$paymentCurrency = Plugin::getInstance()->getPaymentCurrencies()->getPaymentCurrencyByIso($this->getPaymentCurrency());
24602460
$amount = Currency::round($amount, $paymentCurrency);
24612461

2462-
if ($amount <= 0) {
2462+
if ($amount > 0) {
24632463
$this->_paymentAmount = $amount;
24642464
}
24652465
}

0 commit comments

Comments
 (0)