Contents

readVAS(_:eventHandler:)

Presents a sheet to read a loyalty card for Value Added Services (VAS), and returns the loyalty card data.

Declaration

func readVAS(_ request: VASRequest, eventHandler: ((PaymentCardReaderSession.Event) -> Void)? = nil) async throws -> VASReadResult

Parameters

  • request:

    The object that you use to specify the request details, such as the list of supported merchants.

  • eventHandler:

    A handler you use to receive request-related updates. The handler has no return value and takes a Event as a parameter. Use the event parameter to determine what happened.

Return Value

A VASReadResult if the read operation was successful.

Discussion

Call this method to read the data from a loyalty card. When you call this method, the system displays UI with instructions on what the person needs to do. This UI remains onscreen until the system reads the person’s card, you cancel the operation, or an error occurs.

See Also

Deprecated