diff --git a/src/Adyen/Service.php b/src/Adyen/Service.php index 424fdc38..3c93b828 100644 --- a/src/Adyen/Service.php +++ b/src/Adyen/Service.php @@ -145,6 +145,8 @@ public function createBaseUrl(string $url): string // Replace 'test' in string with 'live' for the other endpoints $url = str_replace('-test', '-live', $url); + } else { + $url = str_replace('-live', '-test', $url); } return $url; }