MAIData

@interface MAIData : TemplateData

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.
  • Get Payment Network Specific value for tag string. The tags are from 1 to 99.

    Declaration

    Objective-C

    - (NSString *_Nullable)
    getPaymentNetworkSpecificForTag:(NSString *_Nonnull)tag
                              error:(NSError *_Nullable *_Nullable)error;

    Swift

    func getPaymentNetworkSpecific(forTag tag: String) throws -> String

    Parameters

    tag

    NSString* tag for which to get value

    Return Value

    Value if found else nil

  • Set Payment Network Specific value for tag string. The tags are from 1 to 99.

    Declaration

    Objective-C

    - (BOOL)setPaymentNetworkSpecific:(NSString *_Nonnull)value
                               forTag:(NSString *_Nonnull)tag
                                error:(NSError *_Nullable *_Nullable)error;

    Swift

    func setPaymentNetworkSpecific(_ value: String, forTag tag: String) throws

    Parameters

    value

    NSString* to set

    tag

    NSString* tag to set the value of

  • Set Payment Network Specific value for tag string. This method is similar to (setPaymentNetworkSpecific:error:). In this method user do not specify the tag, the function will determine the tag. The tags are from 1 to 99.

    Declaration

    Objective-C

    - (BOOL)setDynamicPaymentNetworkSpecific:(NSString *_Nonnull)value
                                       error:(NSError *_Nullable *_Nullable)error;

    Swift

    func setDynamicPaymentNetworkSpecific(_ value: String) throws

    Parameters

    value

    NSString* to be inserted

  • Get Payment Network Specific all available tag. The return value can then be use to get the value by calling method (getTagInfoValueForTagString:error:). The tags are from 1 to 99.

    Declaration

    Objective-C

    - (NSArray<NSString *> *_Nullable)getAllDynamicPaymentNetworkSpecificTags;

    Swift

    func getAllDynamicPaymentNetworkSpecificTags() -> [String]?

    Return Value

    NSArray of available tag in string