From 196f5fed0ffe5fc4f848cb68a80531661d22dcb9 Mon Sep 17 00:00:00 2001 From: jillingk <93914435+jillingk@users.noreply.github.com> Date: Thu, 15 Aug 2024 14:08:05 +0200 Subject: [PATCH] Update client.py --- Adyen/client.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Adyen/client.py b/Adyen/client.py index e13b42b..14d5b97 100644 --- a/Adyen/client.py +++ b/Adyen/client.py @@ -130,7 +130,8 @@ def __init__( def _determine_api_url(self, platform, endpoint): if platform == "test": - return endpoint + # Replace live with test in base url is configured with live url by default + return endpoint.replace("-live", "-test") if "pal-" in endpoint: if self.live_endpoint_prefix is None: