Skip to content

Commit 49975ac

Browse files
authored
Update client.py (#330)
1 parent 30f1742 commit 49975ac

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Adyen/client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,8 @@ def __init__(
130130

131131
def _determine_api_url(self, platform, endpoint):
132132
if platform == "test":
133-
return endpoint
133+
# Replace live with test in base url is configured with live url by default
134+
return endpoint.replace("-live", "-test")
134135

135136
if "pal-" in endpoint:
136137
if self.live_endpoint_prefix is None:

0 commit comments

Comments
 (0)