Classes
The following classes are available globally.
-
MPQRError will be thrown if there are any error during parsing or generating QRCode
See moreDeclaration
Objective-C
@interface MPQRError : NSError
Swift
class MPQRError : NSError
-
Abstract class
See moreAbstractData
model is the root of Data hierarchy, containing the basic common functions applicable to all Data classes. All Data classes will haveAbstractData
model as its superclass.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 moreDeclaration
Objective-C
@interface AdditionalData : AbstractData
Swift
class AdditionalData : AbstractData
-
Class to store the language data
See moreDeclaration
Objective-C
@interface LanguageData : AbstractData
Swift
class LanguageData : 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.
-
Class that contain the main data of MPQR
See moreDeclaration
Objective-C
@interface PushPaymentData : AbstractData
Swift
class PushPaymentData : AbstractData
-
Superclass of MAI data and Unrestricted Data
See moreDeclaration
Objective-C
@interface TemplateData : AbstractData
Swift
class TemplateData : AbstractData
-
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.Declaration
Objective-C
@interface UnrestrictedData : TemplateData
Swift
class UnrestrictedData : TemplateData
-
Primary interface of the framework. This class provide interface to parse the QRCode string to structured data, i.e.
PushPaymentData
.- It has
+parse:error:
method that do parsing as well as do validation if the string is compliance with EMVCO standard. - It also has
+parseWithoutTagValidation:error:
and+parseWithoutTagValidationAndCRC:error:
to parse the string without validating if the value is compliance with EMVCO standard.
Declaration
Objective-C
@interface MPQRParser : NSObject
Swift
class MPQRParser : NSObject
- It has
-
Object derived from tag-length-value string of data object in scanned QR string.
See moreDeclaration
Objective-C
@interface TLV : NSObject
Swift
class TLV : NSObject
-
Tags collection for additional data
See moreDeclaration
Objective-C
@interface AdditionalDataTag : NSObject <Tag>
Swift
class AdditionalDataTag : NSObject, Tag
-
Look up class to access value and set value for enum
See moreCurrencyEnum
.Declaration
Objective-C
@interface CurrencyEnumLookup : NSObject
Swift
class CurrencyEnumLookup : NSObject
-
Tag to store language tag associated with LanguadeData
See moreDeclaration
Objective-C
@interface LanguageTag : NSObject <Tag>
Swift
class LanguageTag : NSObject, Tag
-
Tag class that associate with PushPaymentData
See moreDeclaration
Objective-C
@interface PPTag : NSObject <Tag>
Swift
class PPTag : NSObject, Tag
-
Superclass of all tag class
See moreDeclaration
Objective-C
@interface TagInfo : NSObject <NSCopying>
Swift
class TagInfo : NSObject, NSCopying
-
Tag class that store tag infomation of TemplateData
See moreDeclaration
Objective-C
@interface TemplateDataTag : NSObject <Tag>
Swift
class TemplateDataTag : NSObject, Tag
-
Class to access value and set value for enum
See moreTipConvenienceIndicator
Declaration
Objective-C
@interface ClassTipConvenienceIndicator : NSObject
Swift
class ClassTipConvenienceIndicator : NSObject
-
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
Declaration
Objective-C
@interface ChecksumUtility : NSObject
Swift
class ChecksumUtility : NSObject
-
Utility class to check if tag is a valid tag.
See moreDeclaration
Objective-C
@interface ValidationUtil : NSObject
Swift
class ValidationUtil : NSObject