Skip to content

Commit de18b02

Browse files
committed
rounded amount for 2 digits
1 parent 827b3f1 commit de18b02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Amount.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public function arraySerialize() : array
5656
{
5757
return [
5858
"currency" => $this->getCurrency() ?? 'RUB',
59-
"value" => $this->getValue()
59+
"value" => round( $this->getValue(), 2),
6060
];
6161
}
6262
}

0 commit comments

Comments
 (0)