getPaymentInterface

@JvmStatic
suspend fun getPaymentInterface(paymentInterfaceType: PaymentInterfaceType): Result<PaymentInterface<*>>

Retrieves an instance of a specific payment interface, such as a card reader.

This method validates the availability of the requested interface and returns it. The returned PaymentInterface is required to perform a transaction.

Return

A Result containing the requested PaymentInterface on success, or an Exception on failure.

Parameters

paymentInterfaceType

The type of payment interface to retrieve (e.g., PaymentInterfaceType.CardReaderInterfaceType).