Re-Order the array keys so that JSON will be an array, not an object

This commit is contained in:
Benjamin Pick
2018-01-03 11:14:05 +01:00
parent 3f35526a02
commit 365cc3ee1f

View File

@@ -290,7 +290,7 @@ class CartBase extends PayPalModel
*/
public function setItemList($item_list)
{
$this->item_list = $item_list;
$this->item_list = array_values($item_list);
return $this;
}