Skip to content

Commit

Permalink
Update client.py (#330)
Browse files Browse the repository at this point in the history
  • Loading branch information
jillingk authored Aug 15, 2024
1 parent 30f1742 commit 49975ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Adyen/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 49975ac

Please sign in to comment.