TapToPayConnectionConfiguration

class TapToPayConnectionConfiguration @JvmOverloads constructor(val useCase: TapUseCase, val autoReconnectOnUnexpectedDisconnect: Boolean = true, val tapToPayReaderListener: TapToPayReaderListener? = null, val merchantDisplayName: String? = null) : ConnectionConfiguration

The TapToPayConnectionConfiguration object should be used to connect to the phone's or tablet's NFC reader.

Parameters

useCase

The TapUseCase representing the use case for Tap to Pay SDK.

autoReconnectOnUnexpectedDisconnect

If set to true, Terminal will try to reconnect to your reader.

tapToPayReaderListener

You will need to set tapToPayReaderListener to be notified of reconnection and disconnect events.

merchantDisplayName

Optional cardholder facing merchant display name that will be used in the prompt for the cardholder to present their card to store card details for future payments. If not provided, the following message will be displayed: "By tapping your card, you are saving payment details for future payments."

Constructors

Link copied to clipboard
constructor(locationId: String, autoReconnectOnUnexpectedDisconnect: Boolean = true, tapToPayReaderListener: TapToPayReaderListener?)
constructor(useCase: TapUseCase, autoReconnectOnUnexpectedDisconnect: Boolean = true, tapToPayReaderListener: TapToPayReaderListener? = null, merchantDisplayName: String? = null)

Properties

Link copied to clipboard
Link copied to clipboard
actual val locationId: String?

The ID of the Location that you want this reader to be registered to.

Link copied to clipboard
val locationRegistration: LocationRegistration
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun toString(): String