initiateOneTimePayment

abstract fun initiateOneTimePayment(    activity: Activity,     configuration: Configuration,     request: InitiateOneTimePayment,     launchMode: LaunchMode,     onSuccess: (TinkPaymentsSuccess) -> Unit,     onError: (TinkError) -> Unit)

This function launches the flow for initiating a one-time payment flow.

Parameters

activity

the Activity that is launching this flow.

configuration

Configuration the configuration for this flow.

request

InitiateOneTimePayment the request object for this flow.

launchMode

LaunchMode the mode in which this Tink flow is shown inside your app.

onSuccess

the callback in case of a successful outcome TinkPaymentsSuccess of this flow.

onError

the callback in case of a non-successful outcome TinkError of this flow or dismissed flow.


abstract fun initiateOneTimePayment(    activity: Activity,     configuration: Configuration,     request: InitiateOneTimePaymentWithPermanentUser,     launchMode: LaunchMode,     onSuccess: (TinkPaymentsSuccess) -> Unit,     onError: (TinkError) -> Unit)

This function launches the flow for initiating a one-time payment flow with permanent user.

Parameters

activity

the Activity that is launching this flow.

configuration

Configuration the configuration for this flow.

request

InitiateOneTimePaymentWithPermanentUser the request object for this flow.

launchMode

LaunchMode the mode in which this Tink flow is shown inside your app.

onSuccess

the callback in case of a successful outcome TinkPaymentsSuccess of this flow.

onError

the callback in case of a non-successful outcome TinkError of this flow or dismissed flow.