Skip to Content
Docs
Get startedPartner API v4Partner API v3Android SDK
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}")
}