EMDsFormattingTools

Objective-C


@interface EMDsFormattingTools : NSObject

Swift

class EMDsFormattingTools : NSObject

DS Formatting Tools

  • Gets the Dynamic Signature template ID encoded by the challenge.

    Declaration

    Objective-C

    + (NSInteger)getDynamicSignatureTemplateIdWithChallenge:
        (id<EMSecureString>)challenge;

    Swift

    class func getDynamicSignatureTemplateId(withChallenge challenge: (any EMSecureString)!) -> Int

    Parameters

    challenge

    The challenge of the transaction, must not be nil.

    Return Value

    The template ID indicating the list of input to request from the user for Dynamic Signature.

  • Checks validity of a challenge against a checksum mode.

    Declaration

    Objective-C

    + (BOOL)checkDigitWithType:(EMVerifyType)type
                     challenge:(id<EMSecureString>)challenge;

    Swift

    class func checkDigit(with type: EMVerifyType, challenge: (any EMSecureString)!) -> Bool

    Parameters

    type

    Checksum algorithm to use, See EMVerifyType define list of supported modes.

    challenge

    The challenge of the transaction, must not be nil.

    Return Value

    YES if the checksum is correct, NO otherwise