TeyaPosLinkSDK

@JvmName(name = "init")
@ObjCName(name = "initialize")
fun TeyaPosLinkSDK(authConfig: PosLinkSDK.AuthConfig, isProductionEnv: Boolean, eposInstanceId: String?, logger: Logger? = null): PosLinkSDK

Initializes the PosLink integration for the specified authConfig and eposInstanceId. We recommend providing a logger implementation to help diagnose issues.

PosLink is a Teya Cloud service designed to handle payment requests and deliver push notifications to the terminal linked by the user during the PosLinkSDK.setupTransactionsApi process. During the first successful PosLinkSDK.setupTransactionsApi call, the user will also be required to log in to their Teya account.

Return

An instance of PosLinkSDK to configure the integration.

Parameters

authConfig

Auth configuration details for the PosLink integration.

isProductionEnv

SDK will use production endpoints if true, otherwise it will use dev endpoints.

eposInstanceId

A unique identifier for the ePOS instance, like a device unique identifier. Included in new payment requests sent to the PosLink service.

logger

used for SDK logs. If none is provided, no logs will be generated.