From 7a024b4a6f2b5c6b2d74a1a3cb322cc2674e2f0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Seggewi=C3=9F?= Date: Mon, 15 Oct 2018 11:53:44 +0200 Subject: [PATCH] PT-9710 - fix transmission of payment values --- .../Structs/Payment/Transactions/ItemList/Item.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/PayPalBundle/Structs/Payment/Transactions/ItemList/Item.php b/PayPalBundle/Structs/Payment/Transactions/ItemList/Item.php index fd1e00c8..3b17ec59 100644 --- a/PayPalBundle/Structs/Payment/Transactions/ItemList/Item.php +++ b/PayPalBundle/Structs/Payment/Transactions/ItemList/Item.php @@ -21,7 +21,7 @@ class Item private $sku; /** - * @var float + * @var string */ private $price; @@ -31,7 +31,7 @@ class Item private $currency; /** - * @var int + * @var string */ private $quantity; @@ -53,7 +53,7 @@ public function getTax() */ public function setTax($tax) { - $this->tax = $tax; + $this->tax = (string) $tax; } /** @@ -89,7 +89,7 @@ public function setSku($sku) } /** - * @return float + * @return string */ public function getPrice() { @@ -101,7 +101,7 @@ public function getPrice() */ public function setPrice($price) { - $this->price = $price; + $this->price = (string) $price; } /** @@ -133,7 +133,7 @@ public function getQuantity() */ public function setQuantity($quantity) { - $this->quantity = $quantity; + $this->quantity = (string) $quantity; } /**