Protocols
The following protocols are available globally.
-
Input for tokenization module.
In the process of running mSDK, allows you to run processes using the
See moreTokenizationModuleInput
protocol methods.Declaration
Swift
public protocol TokenizationModuleInput : AnyObject
-
Output for tokenization module.
See moreDeclaration
Swift
public protocol TokenizationModuleOutput : AnyObject
-
Delegate for
CardScanning
.The Protocol method allows to transfer the final data of the Bank card for further work.
See moreDeclaration
Swift
public protocol CardScanningDelegate : 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
See moreScannedCardInfo
data model should be initialized. Next, using the propertycardScanningDelegate
, callingcardScannerDidFinish(_ cardInfo:)
pass the data.Declaration
Swift
public protocol CardScanning : AnyObject