Skip to content

Commit

Permalink
Override TerminalAPICloud url
Browse files Browse the repository at this point in the history
  • Loading branch information
gcatanese committed Jan 11, 2024
1 parent 2a2acef commit 6be84fa
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ public TerminalCloudApiService(ApplicationProperty applicationProperty) {
}

client = new Client(applicationProperty.getApiKey(), Environment.TEST);
if(applicationProperty.getAdyenTerminalApiCloudEndpoint() != null) {
// override AdyenTerminalApiCloudEndpoint TEST URL (for example using Mock Terminal app)
client.getConfig().setTerminalApiCloudEndpoint(applicationProperty.getAdyenTerminalApiCloudEndpoint());
}
terminalCloudAPI = new TerminalCloudAPI(client);
}

Expand Down

0 comments on commit 6be84fa

Please sign in to comment.