Protocols

The following protocols are available globally.

  • Input for tokenization module.

    In the process of running mSDK, allows you to run processes using the TokenizationModuleInput protocol methods.

    See more

    Declaration

    Swift

    public protocol TokenizationModuleInput : AnyObject
  • Output for tokenization module.

    See more

    Declaration

    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 more

    Declaration

    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 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.

    See more

    Declaration

    Swift

    public protocol CardScanning : AnyObject