Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ public class RecurringApi extends Service {
*/
public RecurringApi(Client client) {
super(client);
this.baseURL = createBaseURL("https://pal-test.adyen.com/pal/servlet/Recurring/v68");
this.baseURL =
createBaseURL("https://paltokenization-test.adyen.com/pal/servlet/Recurring/v68");
Comment on lines +47 to +48
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

The new base URL https://paltokenization-test.adyen.com/... no longer contains pal-. This will cause an issue in the Service.createBaseURL method when constructing the URL for the LIVE environment.

The logic in Service.java (line 96) specifically checks for url.contains("pal-") to construct the live URL using the liveEndpointUrlPrefix. With this change, this condition will be false for the recurring service.

Consequently, the code will fall through to url.replaceFirst("-test", "-live") (line 130), resulting in a live URL of https://paltokenization-live.adyen.com/.... This is likely incorrect as it bypasses the required liveEndpointUrlPrefix for PAL services.

This will likely break existing integrations in the LIVE environment. The logic in Service.createBaseURL needs to be updated to handle this new URL structure, probably by also updating the string replacement logic to handle paltokenization-test.adyen.com.

}

/**
Expand Down