Skip to content

Commit 643684f

Browse files
authored
fix possdk live url (#1363)
1 parent 5dd5478 commit 643684f

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,14 @@ protected String createBaseURL(String url) {
6464
if (config.getLiveEndpointUrlPrefix() == null) {
6565
throw new IllegalArgumentException("please provide a live url prefix in the client");
6666
}
67-
url = url.replaceFirst("https://checkout-test.adyen.com/",
68-
"https://" + config.getLiveEndpointUrlPrefix() + "-checkout-live.adyenpayments.com/checkout/");
67+
if (url.contains("/possdk/v68")) {
68+
// Temporary until they fix possdk
69+
url = url.replaceFirst("https://checkout-test.adyen.com/",
70+
"https://" + config.getLiveEndpointUrlPrefix() + "-checkout-live.adyenpayments.com/");
71+
} else {
72+
url = url.replaceFirst("https://checkout-test.adyen.com/",
73+
"https://" + config.getLiveEndpointUrlPrefix() + "-checkout-live.adyenpayments.com/checkout/");
74+
}
6975
}
7076

7177
return url.replaceFirst("-test", "-live");

0 commit comments

Comments
 (0)