Skip to content

Commit

Permalink
Allowing zero sub totals in Helper/PaymentMethods.php (Adyen#1028)
Browse files Browse the repository at this point in the history
Co-authored-by: acampos1916 <>
  • Loading branch information
acampos1916 authored May 5, 2021
1 parent d81cbbd commit c2f404d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Helper/PaymentMethods.php
Original file line number Diff line number Diff line change
Expand Up @@ -217,13 +217,13 @@ protected function getCurrentPaymentAmount()

$total = (float)$total;

if ($total > 0) {
if ($total >= 0) {
return $total;
}

throw new \Exception(
sprintf(
'Cannot retrieve a valid grand total from quote ID: `%s`. Expected a float > `0`, got `%f`.',
'Cannot retrieve a valid grand total from quote ID: `%s`. Expected a float >= `0`, got `%f`.',
$this->getQuote()->getEntityId(),
$total
)
Expand Down

0 comments on commit c2f404d

Please sign in to comment.