ContactlessPaymentInputData

public struct ContactlessPaymentInputData : Sendable

Encapsulates the input required to start a contactless payment.

ContactlessPaymentInputData defines whether wallet transaction data should be provided directly (ephemeral) or retrieved from storage.

  • Creates a new instance of ContactlessPaymentInputData.

    Throws

    WalletTransactionDataError/invalidWalletTransactionData if ephemeral data validation fails.

    Declaration

    Swift

    public init(
        digitalCardID: String? = nil,
        walletTransactionDataMode: WalletTransactionDataMode
    ) throws

    Parameters

    digitalCardID

    An optional identifier of the digital card.

    walletTransactionDataMode

    The mode indicating how wallet transaction data should be supplied (either .ephemeral or .storage).