setupAuthAndStore

abstract fun setupAuthAndStore(onFailure: (PosLinkSDK.SetupFailure) -> Unit, onSuccess: () -> Unit)

Same as setup but skips terminal linking.

If using this version of the setup flow, make sure to call linkTerminal before using other APIs that need a terminal to be linked.

Parameters

onFailure

Callback invoked when setup fails with SetupFailure.

onSuccess

Callback invoked when setup is successful com.teya.unifiedepossdk.TeyaCommonTransactionsApi.

See also


abstract fun setupAuthAndStore(preselectedStore: Store, onFailure: (PosLinkSDK.SetupFailure) -> Unit, onSuccess: () -> Unit)

Like setup (the one with preselectedStore parameter), but skips terminal linking.

If using this version of the setup flow, make sure to call linkTerminal before using other APIs that need a terminal to be linked.

Parameters

preselectedStore

Store that the ePOS will be linked to, avoiding the need to ask the user to select one.

onFailure

Callback invoked when setup fails with Failure.

onSuccess

Callback invoked when setup is successful com.teya.unifiedepossdk.TeyaCommonTransactionsApi.

See also