AllInOneSDK

interface AllInOneSDK

Interface for the "All In One" integration SDK APIs. "All In One" here means that the ePOS App is running in the same device as the Teya Payments App. Use isAvailable to check if that is the case.

It contains method specific to "All In One" integration type and upon setup call, the com.teya.unifiedepossdk.TeyaCommonTransactionsApi instance will be available, which has a common API with other integration types.

Inheritors

Properties

Link copied to clipboard
abstract val isAvailable: Boolean

Returns true if there is a Teya Payments App installed, false otherwise.

Link copied to clipboard

Sets up the AioReceiptPrintingApi instance. Returns null if there is no Teya Payments App installed or if the current device / app doesn't support receipt printing.

Functions

Link copied to clipboard
abstract fun setupTransactionsApi(skipApprovedScreen: Boolean = false, allowPaymentAppTips: Boolean = true, showReceiptOptionsOnPaymentApp: Boolean = false): TeyaCommonTransactionsApi?

Sets up the TeyaCommonTransactionsApi instance. Returns null if there is no Teya Payments App installed.