diff --git a/src/main/java/com/adyen/Service.java b/src/main/java/com/adyen/Service.java index a91dbe138..5c7d6331e 100644 --- a/src/main/java/com/adyen/Service.java +++ b/src/main/java/com/adyen/Service.java @@ -64,8 +64,14 @@ protected String createBaseURL(String url) { if (config.getLiveEndpointUrlPrefix() == null) { throw new IllegalArgumentException("please provide a live url prefix in the client"); } - url = url.replaceFirst("https://checkout-test.adyen.com/", - "https://" + config.getLiveEndpointUrlPrefix() + "-checkout-live.adyenpayments.com/checkout/"); + if (url.contains("/possdk/v68")) { + // Temporary until they fix possdk + url = url.replaceFirst("https://checkout-test.adyen.com/", + "https://" + config.getLiveEndpointUrlPrefix() + "-checkout-live.adyenpayments.com/"); + } else { + url = url.replaceFirst("https://checkout-test.adyen.com/", + "https://" + config.getLiveEndpointUrlPrefix() + "-checkout-live.adyenpayments.com/checkout/"); + } } return url.replaceFirst("-test", "-live");