Skip to content

Commit

Permalink
Fix amount
Browse files Browse the repository at this point in the history
  • Loading branch information
marcmascort committed Nov 7, 2022
1 parent bb08608 commit f66e76c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/TPV/Common/Fields/Amount.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ protected function normalize()
{
$value = round($this->value, 2, PHP_ROUND_HALF_UP);
}
$value *= 100;
//$this->normalized = str_pad($value, 12, '0', STR_PAD_LEFT);
$value = intval($value * 100);
$this->normalized = $value;
}
else
Expand Down

0 comments on commit f66e76c

Please sign in to comment.