Skip to content

Commit

Permalink
Merge pull request #114 from paynl/feature/PLUG-168
Browse files Browse the repository at this point in the history
Added fix for v16 GetService
  • Loading branch information
woutse authored Jul 13, 2020
2 parents 118ccff + a3358e1 commit da65091
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 da65091

Please sign in to comment.