Classes

The following classes are available globally.

  • MPQRError will be thrown if there are any error during parsing or generating QRCode

    See more

    Declaration

    Objective-C

    @interface MPQRError : NSError

    Swift

    class MPQRError : NSError
  • Abstract class AbstractData model is the root of Data hierarchy, containing the basic common functions applicable to all Data classes. All Data classes will have AbstractData model as its superclass.

    See more

    Declaration

    Objective-C

    @interface AbstractData : NSObject {
      NSMutableDictionary<TagInfo *, id> *map;
    }

    Swift

    class AbstractData : NSObject
  • Additional Data Field: Additional information beyond basic may be required in certain cases. This information may be either presented by the merchant or acquirer or the Consumer may be prompted for entry on the app. For consumer prompt, the value field of Tag would be 3 asterisks i.e. ***.

    See more

    Declaration

    Objective-C

    @interface AdditionalData : AbstractData

    Swift

    class AdditionalData : AbstractData
  • MAIData class is used to store Merchant Account Information of Push Payment Data (tags 26-51).

    Note

    To assign Application Identifier (tag 00), use AID property from TemplateData class.
    See more

    Declaration

    Objective-C

    @interface MAIData : TemplateData

    Swift

    class MAIData : TemplateData
  • This class is to store Unreserved Template Data of Push Payment Data tags 80-99 and to store Unreserved Template Data of Additional Data tags 50-99.

    Note

    To assign Application Identifier (tag 00), use AID property from TemplateData class.
    See more

    Declaration

    Objective-C

    @interface UnrestrictedData : TemplateData

    Swift

    class UnrestrictedData : TemplateData
  • TLV

    Object derived from tag-length-value string of data object in scanned QR string.

    See more

    Declaration

    Objective-C

    @interface TLV : NSObject

    Swift

    class TLV : NSObject
  • Tags collection for additional data

    See more

    Declaration

    Objective-C

    @interface AdditionalDataTag : NSObject <Tag>

    Swift

    class AdditionalDataTag : NSObject, Tag
  • Look up class to access value and set value for enum CurrencyEnum.

    See more

    Declaration

    Objective-C

    @interface CurrencyEnumLookup : NSObject

    Swift

    class CurrencyEnumLookup : NSObject
  • Tag to store language tag associated with LanguadeData

    See more

    Declaration

    Objective-C

    @interface LanguageTag : NSObject <Tag>

    Swift

    class LanguageTag : NSObject, Tag
  • Tag class that associate with PushPaymentData

    See more

    Declaration

    Objective-C

    @interface PPTag : NSObject <Tag>

    Swift

    class PPTag : NSObject, Tag
  • Superclass of all tag class

    See more

    Declaration

    Objective-C

    @interface TagInfo : NSObject <NSCopying>

    Swift

    class TagInfo : NSObject, NSCopying
  • Tag class that store tag infomation of TemplateData

    See more

    Declaration

    Objective-C

    @interface TemplateDataTag : NSObject <Tag>

    Swift

    class TemplateDataTag : NSObject, Tag
  • Utility class to check valid checksum. It includes:

    • CRC checksum that is being used in EMVCO standard
    • Luhn checksum that is being used in Mastercard identifier
    See more

    Declaration

    Objective-C

    @interface ChecksumUtility : NSObject

    Swift

    class ChecksumUtility : NSObject
  • Utility class to retrieve TagInfo given a tag in string format.

    See more

    Declaration

    Objective-C

    @interface TagUtility : NSObject

    Swift

    class TagUtility : NSObject
  • Utility class to check if tag is a valid tag.

    See more

    Declaration

    Objective-C

    @interface ValidationUtil : NSObject

    Swift

    class ValidationUtil : NSObject