CardScanning

public protocol CardScanning : AnyObject

Scan your Bank card.

The type implementing the CardScanning' protocol has the ability to show the view controller to scan the card. With the implementation of the propertiescardScanningViewController` should be initialized view controller, which is able to obtain credit card information.

  • Example:
  • Notes: The example uses a view controller from CardIO. var cardScanningViewController: UIViewController? { return CardIOPaymentViewController(paymentDelegate: self) }

After receiving the Bank card data, the ScannedCardInfo data model should be initialized. Next, using the property cardScanningDelegate, calling cardScannerDidFinish(_ cardInfo:) pass the data.