Skip to content

Commit

Permalink
Added fix for v16 GetService
Browse files Browse the repository at this point in the history
  • Loading branch information
woutse committed Jul 13, 2020
1 parent 7226b7a commit a3358e1
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/Api/Transaction/GetService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

0 comments on commit a3358e1

Please sign in to comment.