CardScanSheet

public class CardScanSheet

A drop-in class that presents a sheet for a customer to scan their card

  • Presents a sheet for a customer to scan their card

    Declaration

    Swift

    @available(iOSApplicationExtension, unavailable)
    @available(macCatalystApplicationExtension, unavailable)
    public func present(
        from presentingViewController: UIViewController,
        completion: @escaping (CardScanSheetResult) -> Void,
        animated: Bool = true
    )

    Parameters

    presentingViewController

    The view controller to present a card scan sheet

    completion

    Called with the result of the scan after the card scan sheet is dismissed