Skip to content
Closed
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,8 +44,7 @@ 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://pal-test.adyen.com/pal/servlet/Recurring/v68");
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

To improve maintainability, it's better to construct the base URL using the API_VERSION constant that is already defined in this class. This ensures that the API version is consistent and easy to update in a single place, reducing the risk of errors during future updates.

Suggested change
this.baseURL = createBaseURL("https://pal-test.adyen.com/pal/servlet/Recurring/v68");
this.baseURL = createBaseURL("https://pal-test.adyen.com/pal/servlet/Recurring/v" + API_VERSION);

}

/**
Expand Down