diff --git a/lib/Api/SessionApi.php b/lib/Api/SessionApi.php index fc47e51..3c9e1e5 100644 --- a/lib/Api/SessionApi.php +++ b/lib/Api/SessionApi.php @@ -48,9 +48,8 @@ class SessionApi public function __construct(\Reepay\ApiClient $apiClient = null) { if ($apiClient === null) { - $config = new Configuration(); - $config->setHost($this->host); - $apiClient = new ApiClient($config); + Configuration::getDefaultConfiguration()->setHost($this->host); + $apiClient = new ApiClient(); } $this->apiClient = $apiClient;