From ec17ea5ce6eb7790a1dad3008bf087cad21515da Mon Sep 17 00:00:00 2001 From: jillingk <93914435+jillingk@users.noreply.github.com> Date: Thu, 15 Aug 2024 14:15:02 +0200 Subject: [PATCH] Update Service.php (#688) --- src/Adyen/Service.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Adyen/Service.php b/src/Adyen/Service.php index 424fdc38e..3c93b8282 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; }