From 365cc3ee1f664bff89eaeca151b983e3a1907512 Mon Sep 17 00:00:00 2001 From: Benjamin Pick Date: Wed, 3 Jan 2018 11:14:05 +0100 Subject: [PATCH] Re-Order the array keys so that JSON will be an array, not an object --- lib/PayPal/Api/CartBase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/PayPal/Api/CartBase.php b/lib/PayPal/Api/CartBase.php index 1f7ef1e..86f1f20 100644 --- a/lib/PayPal/Api/CartBase.php +++ b/lib/PayPal/Api/CartBase.php @@ -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; }