From ef4b6aa45a95debd426f8a9c2a799d760bb664c9 Mon Sep 17 00:00:00 2001 From: Marcus Kreusch Date: Fri, 18 Dec 2020 00:51:55 +0100 Subject: [PATCH] round amount --- .../mkreusch/amzon-pay-api-extended-sdk/Struct/Price.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/new_dirs/includes/modules/payment/amazon_pay/vendor/mkreusch/amzon-pay-api-extended-sdk/Struct/Price.php b/new_dirs/includes/modules/payment/amazon_pay/vendor/mkreusch/amzon-pay-api-extended-sdk/Struct/Price.php index a0ab886..f08bb23 100644 --- a/new_dirs/includes/modules/payment/amazon_pay/vendor/mkreusch/amzon-pay-api-extended-sdk/Struct/Price.php +++ b/new_dirs/includes/modules/payment/amazon_pay/vendor/mkreusch/amzon-pay-api-extended-sdk/Struct/Price.php @@ -22,13 +22,13 @@ public function getAmount() } /** - * @param string $amount + * @param string|float $amount * * @return Price */ public function setAmount($amount) { - $this->amount = $amount; + $this->amount = number_format(round($amount, 2), 2, '.', ''); return $this; }