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; }