MeaCardData
Objective-C
@interface MeaCardData : NSObject
Swift
class 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 (^)(McdCardData *_Nullable, NSError *_Nullable))completionHandler;Swift
class func cardData(_ cardId: String, secret: String) async throws -> McdCardDataParameters
cardIdCard ID.
secretgenerated TOTP.
completionHandlerThe 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
- McdCardData
-
Retrieves card data images.
Declaration
Objective-C
+ (void)getCardDataImages:(NSString *_Nonnull)cardId secret:(NSString *_Nonnull)secret completionHandler: (nonnull void (^)(McdCardDataImages *_Nullable, NSError *_Nullable))completionHandler;Swift
class func images(_ cardId: String, secret: String) async throws -> McdCardDataImagesParameters
cardIdCard ID.
secretgenerated TOTP.
completionHandlerThe 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
- McdCardDataImages
-
Retrieves card PIN image data.
Declaration
Objective-C
+ (void)getCardPinImage:(NSString *_Nonnull)cardId secret:(NSString *_Nonnull)secret completionHandler:(nonnull void (^)(McdCardPinImage *_Nullable, NSError *_Nullable))completionHandler;Swift
class func cardPinImage(_ cardId: String, secret: String) async throws -> McdCardPinImageParameters
cardIdCard ID.
secretgenerated TOTP.
completionHandlerThe 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
- McdCardPinImage
-
Sets new Pin.
Declaration
Objective-C
+ (void)setCardPin:(NSString *_Nonnull)cardId secret:(NSString *_Nonnull)secret oldPin:(NSString *_Nullable)oldPin newPin:(NSString *_Nonnull)newPin completionHandler: (nonnull void (^)(BOOL, NSError *_Nullable))completionHandler;Swift
class func setCardPin(_ cardId: String, secret: String, oldPin: String?, newPin: String) async throws -> BoolParameters
cardIdCard ID.
secretgenerated TOTP.
oldPinOld PIN.
newPinNew PIN.
completionHandlerThe 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;Swift
class func unblockCardPin(_ cardId: String, secret: String) async throws -> BoolParameters
cardIdCard ID.
secretgenerated TOTP.
completionHandlerThe 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;Swift
class func versionCode() -> StringReturn Value
Version code.
-
Returns version name of the SDK. Example: “mcd-mea-test-1.0.0-6”
Declaration
Objective-C
+ (NSString *_Nonnull)versionName;Swift
class func versionName() -> StringReturn Value
Version name.
-
Switch enable/disable debug logging.
Declaration
Objective-C
+ (void)setDebugLoggingEnabled:(BOOL)enabled;Swift
class func setDebugLoggingEnabled(_ enabled: Bool)Parameters
enabledEnable or disable debug logging.
-
Loads provided client configuration file.
Declaration
Objective-C
+ (void)loadConfig:(NSString *_Nonnull)configFileName;Swift
class func loadConfig(_ configFileName: String)Parameters
configFileNameFile name of the provided client configuration file.
-
Returns hash of the loaded configuration.
Declaration
Objective-C
+ (NSString *_Nonnull)configurationHash;Swift
class func configurationHash() -> StringReturn Value
hash of the loaded configuration or an empty string when configuration is not loaded.
MeaCardData Class Reference