From 5ed5b03fba4b933db9ef740a0df7a67341c66ca3 Mon Sep 17 00:00:00 2001 From: Valentin Ursuleac Date: Thu, 29 Mar 2018 10:08:14 -0400 Subject: [PATCH] Fix retrieve customer --- composer.json | 2 +- src/Provider/MerchantOS.php | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/composer.json b/composer.json index 400742a..28c83a0 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "ursuleacv/oauth2-lightspeed", "description": "LightSpeed OAuth 2.0 Client Provider for The PHP League OAuth2-Client", "license": "MIT", - "version": "2.0.23", + "version": "2.0.24", "authors": [ { "name": "Valentin Ursuleac", diff --git a/src/Provider/MerchantOS.php b/src/Provider/MerchantOS.php index e5c102f..350a976 100644 --- a/src/Provider/MerchantOS.php +++ b/src/Provider/MerchantOS.php @@ -457,13 +457,11 @@ public function getCustomer($customerId, $params = []) if (empty($params)) { $params = [ 'load_relations' => '["Contact","Tags","CustomerType"]', - 'customerID' => $customerId, 'archived' => 0, - 'limit' => '1', ]; } - $response = $this->makeAPICall('Account.Customer', 'GET', null, $params, null); + $response = $this->makeAPICall('Account.Customer', 'GET', $customerId, $params, null); //validate the response if (isset($response['Customer']) && $this->itemsCount($response) == 1) {