Skip to content

Commit dbd18ca

Browse files
authored
Improve POSSDK live endpoint construction (#1570)
* Remove unnecessary version check * Check path element to match possdk only
1 parent e4b2d7b commit dbd18ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/adyen/Service.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ protected String createBaseURL(String url) {
105105
if (config.getLiveEndpointUrlPrefix() == null) {
106106
throw new IllegalArgumentException("please provide a live url prefix in the client");
107107
}
108-
if (url.contains("/possdk/v68")) {
109-
// Temporary until they fix possdk
108+
if (url.contains("/possdk/")) {
109+
// Custom handling of POS Mobile API url
110110
url =
111111
url.replaceFirst(
112112
"https://checkout-test.adyen.com/",

0 commit comments

Comments
 (0)