MeaCardData

@interface MeaCardData : NSObject

Provides API to retrieve additional information about the card.

  • Deprecated

    use ‘McdEasyLaunchCardView’

    Retrieves the PAN and CVC value of the card.

    Declaration

    Objective-C

    + (void)getCardData:(NSString *_Nonnull)cardId
                   secret:(NSString *_Nonnull)secret
        completionHandler:
            (nonnull void (^)(int *_Nullable, NSError *_Nullable))completionHandler;

    Parameters

    cardId

    Card ID.

    secret

    generated TOTP.

    completionHandler

    The code block invoked when request is completed. @deprecated This method is deprecated. Use McdEasyLaunchCardView.

    Parameters for the completionHandler:

    • McdCardData *_Nullable data - Instance McdCardData object containing card PAN and CVV.
    • NSError *_Nullable error - Error object in case of failure
  • Retrieves card data images.

    Declaration

    Objective-C

    + (void)getCardDataImages:(NSString *_Nonnull)cardId
                       secret:(NSString *_Nonnull)secret
            completionHandler:(nonnull void (^)(int *_Nullable, NSError *_Nullable))
                                  completionHandler;

    Parameters

    cardId

    Card ID.

    secret

    generated TOTP.

    completionHandler

    The code block invoked when request is completed.

    Parameters for the completionHandler:

    • McdCardDataImages *_Nullable data - Instance McdCardDataImages.
    • NSError *_Nullable error - Error object in case of failure
  • Retrieves card PIN image data.

    Declaration

    Objective-C

    + (void)getCardPinImage:(NSString *_Nonnull)cardId
                     secret:(NSString *_Nonnull)secret
          completionHandler:(nonnull void (^)(int *_Nullable,
                                              NSError *_Nullable))completionHandler;

    Parameters

    cardId

    Card ID.

    secret

    generated TOTP.

    completionHandler

    The code block invoked when request is completed.

    Parameters for the completionHandler:

    • McdCardPinImage *_Nullable data - Instance McdCardPinImage.
    • NSError *_Nullable error - Error object in case of failure
  • Sets new Pin.

    Declaration

    Objective-C

    + (void)setCardPin:(NSString *_Nonnull)cardId
                   secret:(NSString *_Nonnull)secret
                   oldPin:(NSString *_Nonnull)oldPin
                   newPin:(NSString *_Nonnull)newPin
        completionHandler:
            (nonnull void (^)(BOOL, NSError *_Nullable))completionHandler;

    Parameters

    cardId

    Card ID.

    secret

    generated TOTP.

    oldPin

    Old PIN.

    newPin

    New PIN.

    completionHandler

    The code block invoked when request is completed.

    Parameters for the completionHandler:

    • BOOL isPinSet - true, if new PIN set.
    • NSError *_Nullable error - Error object in case of failure
  • Unblocks PIN.

    Declaration

    Objective-C

    + (void)unblockCardPin:(NSString *_Nonnull)cardId
                    secret:(NSString *_Nonnull)secret
         completionHandler:
             (nonnull void (^)(BOOL, NSError *_Nullable))completionHandler;

    Parameters

    cardId

    Card ID.

    secret

    generated TOTP.

    completionHandler

    The code block invoked when request is completed.

    Parameters for the completionHandler:

    • BOOL isPinUnblocked - true, if new PIN unblocked.
    • NSError *_Nullable error - Error object in case of failure
  • Returns version code of the SDK.

    Declaration

    Objective-C

    + (NSString *_Nonnull)versionCode;

    Return Value

    Version code.

  • Returns version name of the SDK. Example: “mcd-mea-test-1.0.0-6”

    Declaration

    Objective-C

    + (NSString *_Nonnull)versionName;

    Return Value

    Version name.

  • Switch enable/disable debug logging.

    Declaration

    Objective-C

    + (void)setDebugLoggingEnabled:(BOOL)enabled;

    Parameters

    enabled

    Enable or disable debug logging.

  • Loads provided client configuration file.

    Declaration

    Objective-C

    + (void)loadConfig:(NSString *_Nonnull)configFileName;

    Parameters

    configFileName

    File name of the provided client configuration file.

  • Returns hash of the loaded configuration.

    Declaration

    Objective-C

    + (NSString *_Nonnull)configurationHash;

    Return Value

    hash of the loaded configuration or an empty string when configuration is not loaded.