McdCardDataImages
@interface McdCardDataImages : NSObject
Provides API for interacting with received card data.
-
Returns UIImage with PAN.
Declaration
Objective-C
- (nonnull UIImage *)getPanImage:(UIFont *_Nonnull)font color:(UIColor *_Nonnull)color spacing:(CGFloat)spacing;
Return Value
Returns UIImage with PAN.
-
Returns
UIImage
with expiry date inMM/YY
format.Declaration
Objective-C
- (nonnull UIImage *)getExpiryImage:(UIFont *_Nonnull)font color:(UIColor *_Nonnull)color spacing:(CGFloat)spacing;
Return Value
UIImage
with expiry date inMM/YY
format. -
Returns
UIImage
image with emboss name.Declaration
Objective-C
- (nonnull UIImage *)getEmbossNameImage:(UIFont *_Nonnull)font color:(UIColor *_Nonnull)color spacing:(CGFloat)spacing;
Return Value
UIImage
image with emboss name. -
Returns
UIImage
image with CVV.Declaration
Objective-C
- (nonnull UIImage *)getCvvImage:(UIFont *_Nonnull)font color:(UIColor *_Nonnull)color spacing:(CGFloat)spacing;
Return Value
UIImage
image with CVV. -
Copies PAN to clipboard.
Declaration
Objective-C
- (BOOL)copyPanToClipboard;
Return Value
True if card data copied to clipboard. False otherwise.
-
Copies Expiry date in
MM/YY
format to clipboard.Declaration
Objective-C
- (BOOL)copyExpiryToClipboard;
Return Value
True if card data copied to clipboard. False otherwise.
-
Copies emboss name to clipboard.
Declaration
Objective-C
- (BOOL)copyEmbossNameToClipboard;
Return Value
True if card data copied to clipboard. False otherwise.
-
Copies CVV to clipboard.
Declaration
Objective-C
- (BOOL)copyCvvToClipboard;
Return Value
True if card data copied to clipboard. False otherwise.
-
Clears internal card data.
Declaration
Objective-C
- (void)clearData;
-
Sets handler for card data wipe event.
Declaration
Objective-C
@property (nullable) void (^)(void) cardDataClearedBlock;
-
Constructs card data images from McdCardData object.
Declaration
Objective-C
+ (nonnull instancetype)cardDataImagesWithCardData:(id)cardData;
Parameters
cardData
McdCardData to create an instance of card data images.
Return Value
Card data images as instance of McdCardDataImages.
-
Verify if card data are valid.
Declaration
Objective-C
- (BOOL)isValid;
Return Value
Bool value if card data are valid.