JudoPayInputDelegate

public protocol JudoPayInputDelegate

The JudoPayInputDelegate is a delegate protocol that is used to pass information about the state of entering information for making transactions

  • Delegate method that is triggered when the CardInputField encountered an error

    Declaration

    Swift

    func cardInput(input: CardInputField, error: JudoError)

    Parameters

    input

    The input field calling the delegate method

    error

    The error that occured

  • Delegate method that is triggered when the CardInputField did find a valid number

    Declaration

    Swift

    func cardInput(input: CardInputField, didFindValidNumber cardNumberString: String)

    Parameters

    input

    The input field calling the delegate method

    cardNumberString

    The card number that has been entered as a String

  • Delegate method that is triggered when the CardInputField detected a network

    Declaration

    Swift

    func cardInput(input: CardInputField, didDetectNetwork network: CardNetwork)

    Parameters

    input

    The input field calling the delegate method

    network

    The network that has been identified

  • Delegate method that is triggered when the date input field has encountered an error

    Declaration

    Swift

    func dateInput(input: DateInputField, error: JudoError)

    Parameters

    input

    The input field calling the delegate method

    error

    The error that occured

  • Delegate method that is triggered when the date input field has found a valid date

    Declaration

    Swift

    func dateInput(input: DateInputField, didFindValidDate date: String)

    Parameters

    input

    The input field calling the delegate method

    date

    The valid date that has been entered

  • Delegate method that is triggered when the issueNumberInputField entered a code

    Declaration

    Swift

    func issueNumberInputDidEnterCode(input: IssueNumberInputField, issueNumber: String)

    Parameters

    input

    The issueNumberInputField calling the delegate method

    issueNumber

    The issue number that has been entered as a String

  • Delegate method that is triggered when the billingCountry input field selected a BillingCountry

    Declaration

    Swift

    func billingCountryInputDidEnter(input: BillingCountryInputField, billingCountry: BillingCountry)

    Parameters

    input

    The input field calling the delegate method

    billingCountry

    The billing country that has been selected

  • Delegate method that is triggered when the post code input field has received an invalid entry

    Declaration

    Swift

    func postCodeInputField(input: PostCodeInputField, didEnterInvalidPostCodeWithError error: JudoError)

    Parameters

    input

    The input field calling the delegate method

    error

    The error that occured

  • Delegate method that is triggered when the judoPayInputField was validated

    Declaration

    Swift

    func judoPayInput(input: JudoPayInputField, isValid: Bool)

    Parameters

    input

    The input field calling the delegate method

    isValid

    A boolean that indicates whether the input is valid or invalid

  • Delegate method that is called whenever any inputField has been manipulated

    Declaration

    Swift

    func judoPayInputDidChangeText(input: JudoPayInputField)

    Parameters

    input

    The input field calling the delegate method