createReport

abstract fun createReport(activity: Activity, configuration: Configuration, request: IncomeCheckCreateReport, launchMode: LaunchMode, onSuccess: (TinkIncomeCheckSuccess) -> Unit, onError: (TinkError) -> Unit)

Income Check lets you verify an end user’s income by fetching real-time data from their bank account.

This function allow users to authenticate with their bank and after that an income report is generated on Tink backend. To fetch the generated report, use the TinkIncomeCheckSuccess.incomeCheckId identifier that is returned in the onSuccess callback.

Parameters

activity

the Activity that is launching this flow.

configuration

Configuration the configuration for this flow.

request

IncomeCheckCreateReport the request object for this flow.

launchMode

LaunchMode the display mode of this Tink flow inside your app.

onSuccess

(TinkIncomeCheckSuccess)->Unit the callback in case of a successful outcome of this flow.

onError

(TinkError)->Unit the callback in case of a non-successful outcome or if the user dismissed the flow.