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
inputThe input field calling the delegate method
errorThe 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
inputThe input field calling the delegate method
cardNumberStringThe 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
inputThe input field calling the delegate method
networkThe 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
inputThe input field calling the delegate method
errorThe 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
inputThe input field calling the delegate method
dateThe 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
inputThe issueNumberInputField calling the delegate method
issueNumberThe 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
inputThe input field calling the delegate method
billingCountryThe 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
inputThe input field calling the delegate method
errorThe error that occured
-
Delegate method that is triggered when the judoPayInputField was validated
Declaration
Swift
func judoPayInput(input: JudoPayInputField, isValid: Bool)Parameters
inputThe input field calling the delegate method
isValidA 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
inputThe input field calling the delegate method
JudoPayInputDelegate Protocol Reference