Skip to content

Commit 66910db

Browse files
committed
Merge pull request #151 in PLUG_OPEN/swagpaymentpaypalunified from pt-9710/5.2/fix-transmission-of-payment-values to master
* commit '7a024b4a6f2b5c6b2d74a1a3cb322cc2674e2f0c': PT-9710 - fix transmission of payment values
2 parents ee20443 + 7a024b4 commit 66910db

File tree

1 file changed

+6
-6
lines changed
  • PayPalBundle/Structs/Payment/Transactions/ItemList

1 file changed

+6
-6
lines changed

PayPalBundle/Structs/Payment/Transactions/ItemList/Item.php

+6-6
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class Item
2121
private $sku;
2222

2323
/**
24-
* @var float
24+
* @var string
2525
*/
2626
private $price;
2727

@@ -31,7 +31,7 @@ class Item
3131
private $currency;
3232

3333
/**
34-
* @var int
34+
* @var string
3535
*/
3636
private $quantity;
3737

@@ -53,7 +53,7 @@ public function getTax()
5353
*/
5454
public function setTax($tax)
5555
{
56-
$this->tax = $tax;
56+
$this->tax = (string) $tax;
5757
}
5858

5959
/**
@@ -89,7 +89,7 @@ public function setSku($sku)
8989
}
9090

9191
/**
92-
* @return float
92+
* @return string
9393
*/
9494
public function getPrice()
9595
{
@@ -101,7 +101,7 @@ public function getPrice()
101101
*/
102102
public function setPrice($price)
103103
{
104-
$this->price = $price;
104+
$this->price = (string) $price;
105105
}
106106

107107
/**
@@ -133,7 +133,7 @@ public function getQuantity()
133133
*/
134134
public function setQuantity($quantity)
135135
{
136-
$this->quantity = $quantity;
136+
$this->quantity = (string) $quantity;
137137
}
138138

139139
/**

0 commit comments

Comments
 (0)