Skip to content

[Bug]: SessionAuthentication baseUrl is incorrect #1577

@gcatanese

Description

@gcatanese

Description

When creating the client the SessionAuthentication baseUrl is initialised incorrectly

Steps to reproduce

For the Java lib, The -test value is replaced by -prod in the URL when creating the client to make requests to the Adyen API LIVE.
This works well for the API used to generate a form session because the base URL is https://checkout-test.adyen.com/v71, where -test is present.
However, for some API, like https://test.adyen.com/authe/api/v1 “-test” is not here, so this peace of code does not work. Merchants need to switch to LIVE url manually.

See logic in Service class

Actual behavior

No response

Expected behavior

Live url is initiaalised correctly

Code snippet or screenshots (if applicable)

No response

Adyen Java API Library version

40.0.0

Java version

21

Operating System

Windows

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bug reportIndicates that issue has been marked as a possible bug by its creatordo not stale

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions