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 properties
cardScanningViewController` 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.
-
View controller to scan a bank card.
Declaration
Swift
var cardScanningViewController: UIViewController? { get }
-
Delegate for
CardScanning
.Declaration
Swift
var cardScanningDelegate: CardScanningDelegate? { get set }