diff --git a/src/Api/Transaction/GetService.php b/src/Api/Transaction/GetService.php index 1ef9a8e1..d036acd4 100644 --- a/src/Api/Transaction/GetService.php +++ b/src/Api/Transaction/GetService.php @@ -68,16 +68,17 @@ public function doRequest($endpoint = null, $version = null) } try { $result = parent::doRequest('transaction/getService'); + + if(isset($result['service']) && empty($result['service']['basePath'])) { + $result['service']['basePath'] = 'https://admin.pay.nl/images'; + } + self::$cache[$cacheKey] = $result; } catch (\Exception $e) { self::$cache[$cacheKey] = $e; throw $e; } - if(isset($result['service']) && empty($result['service']['basePath'])) { - $result['service']['basePath'] = 'https://admin.pay.nl/images'; - } - return $result; } }