- 
                Notifications
    
You must be signed in to change notification settings  - Fork 146
 
Description
Hi Team,
Currently, the PaymentsApi and similar classes in the Adyen Java API client module (checkout) require the baseURL or liveEndpointUrlPrefix to be defined at construction time. Once the API instance is created, there appears to be no supported way to override or change this value dynamically at runtime.
This becomes limiting in scenarios where different request contexts may require different endpoint routing, such as switching between regional prefixes or environments.
I would like to know the design reasoning such that introducing 'dynamic' behaviour here can go wrong. That brings me to my next query on the possibility to consider an enhancement that allows setting or overriding the base URL dynamically per request — or at least decouple it from being hardcoded in the constructor? Even exposing a method to set the liveEndpointUrlPrefix or baseURL after construction would help in advanced routing scenarios.
Thanks for your consideration!
Code reference:
| protected String baseURL; |