Skip to content

Commit

Permalink
Merge pull request #151 in PLUG_OPEN/swagpaymentpaypalunified from pt…
Browse files Browse the repository at this point in the history
…-9710/5.2/fix-transmission-of-payment-values to master

* commit '7a024b4a6f2b5c6b2d74a1a3cb322cc2674e2f0c':
  PT-9710 - fix transmission of payment values
  • Loading branch information
mitelg committed Oct 16, 2018
2 parents ee20443 + 7a024b4 commit 66910db
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions PayPalBundle/Structs/Payment/Transactions/ItemList/Item.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class Item
private $sku;

/**
* @var float
* @var string
*/
private $price;

Expand All @@ -31,7 +31,7 @@ class Item
private $currency;

/**
* @var int
* @var string
*/
private $quantity;

Expand All @@ -53,7 +53,7 @@ public function getTax()
*/
public function setTax($tax)
{
$this->tax = $tax;
$this->tax = (string) $tax;
}

/**
Expand Down Expand Up @@ -89,7 +89,7 @@ public function setSku($sku)
}

/**
* @return float
* @return string
*/
public function getPrice()
{
Expand All @@ -101,7 +101,7 @@ public function getPrice()
*/
public function setPrice($price)
{
$this->price = $price;
$this->price = (string) $price;
}

/**
Expand Down Expand Up @@ -133,7 +133,7 @@ public function getQuantity()
*/
public function setQuantity($quantity)
{
$this->quantity = $quantity;
$this->quantity = (string) $quantity;
}

/**
Expand Down

0 comments on commit 66910db

Please sign in to comment.