v1.0.6
Configure
Call before each session. v1.0.6 uses apiKey (not sdkKey) and does not have the branchId parameter.
val configResult = AbleCredit.configure(
context = this,
apiKey = apiKey,
tenantId = tenantId,
userId = userId,
baseUrl = baseUrl
)
when (configResult) {
is AbleCreditResult.Success -> Log.d("AbleCredit", "SDK configured")
is AbleCreditResult.Failure -> Log.e("AbleCredit", "Configure failed: ${configResult.message}")
}