forked from LiveCarta/PayPal-PHP-SDK
Fix code ...
This commit is contained in:
@@ -290,7 +290,7 @@ class CartBase extends PayPalModel
|
|||||||
*/
|
*/
|
||||||
public function setItemList($item_list)
|
public function setItemList($item_list)
|
||||||
{
|
{
|
||||||
$this->item_list = array_values($item_list);
|
$this->item_list = $item_list;
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ class ItemList extends PayPalModel
|
|||||||
*/
|
*/
|
||||||
public function setItems($items)
|
public function setItems($items)
|
||||||
{
|
{
|
||||||
$this->items = $items;
|
$this->items = array_values($items);
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user