forked from LiveCarta/PayPal-PHP-SDK
Re-Order the array keys so that JSON will be an array, not an object
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user