-
Notifications
You must be signed in to change notification settings - Fork 1
feat: add environment option #27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| } | ||
|
|
||
| private fun getJavaSdkEnvironment(environment: String?): Environment { | ||
| if (environment?.lowercase() == "test") Environment.TEST |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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.
…o eng-9466-add-environment-option
Description
Testing required outside of automated testing?
Screenshots (if appropriate):
Rollback / Rollforward Procedure
Reviewer Checklist