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: