File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -64,8 +64,14 @@ protected String createBaseURL(String url) {
64
64
if (config .getLiveEndpointUrlPrefix () == null ) {
65
65
throw new IllegalArgumentException ("please provide a live url prefix in the client" );
66
66
}
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
+ }
69
75
}
70
76
71
77
return url .replaceFirst ("-test" , "-live" );
You can’t perform that action at this time.
0 commit comments