Skip to content

Conversation

@jleon15
Copy link
Contributor

@jleon15 jleon15 commented Nov 24, 2025

Description

  • add environment option

Testing required outside of automated testing?

  • Not Applicable

Screenshots (if appropriate):

  • Not Applicable

Rollback / Rollforward Procedure

  • Roll Forward
  • Roll Back

Reviewer Checklist

  • Description of Change
  • Description of outside testing if applicable.
  • Description of Roll Forward / Backward Procedure
  • Documentation updated for Change

}

private fun getJavaSdkEnvironment(environment: String?): Environment {
if (environment?.lowercase() == "test") Environment.TEST
Copy link
Contributor Author

@jleon15 jleon15 Nov 24, 2025

Choose a reason for hiding this comment

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

this won't compile until we regenerate the java sdk

private val apiUrl: String = "https://api.basistheory.com",
private val defaultApiKey: String? = null
private val defaultApiKey: String? = null,
private val environment: String? = "production"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We could make an ApiClientProviderV2 or something and only allow people to pass environment and api key, to remove api url if we wanted, though this is consistent with how it is on web elements.

dhudec
dhudec previously approved these changes Dec 4, 2025
@jleon15 jleon15 merged commit 88cb091 into master Dec 11, 2025
4 checks passed
@jleon15 jleon15 deleted the eng-9466-add-environment-option branch December 11, 2025 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants