Theme

public struct Theme

A class which can be used to easily customize the SDKs view

  • A tint color that is used to generate a theme for the judo payment form

    Declaration

    Swift

    public var tintColor: UIColor = UIColor(red: 30/255, green: 120/255, blue: 160/255, alpha: 1.0)
  • Set the address verification service to true to prompt the user to input his country and post code information

    Declaration

    Swift

    public var avsEnabled: Bool = false
  • a boolean indicating whether a security message should be shown below the input

    Declaration

    Swift

    public var showSecurityMessage: Bool = false
  • An array of accepted card configurations (card network and card number length)

    Declaration

    Swift

    public var acceptedCardNetworks: [Card.Configuration] = [Card.Configuration(.AMEX, 15), Card.Configuration(.Visa, 16), Card.Configuration(.MasterCard, 16), Card.Configuration(.Maestro, 16)]
  • the title for the payment button

    Declaration

    Swift

    public var paymentButtonTitle = "Pay"
  • the title for the button when registering a card

    Declaration

    Swift

    public var registerCardButtonTitle = "Add card"
  • the title for the back button of the navigation controller

    Declaration

    Swift

    public var registerCardNavBarButtonTitle = "Add"
  • the title for the back button

    Declaration

    Swift

    public var backButtonTitle = "Back"
  • the title for a payment

    Declaration

    Swift

    public var paymentTitle = "Payment"
  • the title for a card registration

    Declaration

    Swift

    public var registerCardTitle = "Add card"
  • the title for a refund

    Declaration

    Swift

    public var refundTitle = "Refund"
  • the title for an authentication

    Declaration

    Swift

    public var authenticationTitle = "Authentication"
  • when a register card transaction is currently running

    Declaration

    Swift

    public var loadingIndicatorRegisterCardTitle = "Adding card..."
  • the title of the loading indicator during a transaction

    Declaration

    Swift

    public var loadingIndicatorProcessingTitle = "Processing payment..."
  • the title of the loading indicator during a redirect to a 3DS webview

    Declaration

    Swift

    public var redirecting3DSTitle = "Redirecting..."
  • the title of the loading indicator during the verification of the transaction

    Declaration

    Swift

    public var verifying3DSPaymentTitle = "Verifying payment"
  • the title of the loading indicator during the verification of the card registration

    Declaration

    Swift

    public var verifying3DSRegisterCardTitle = "Verifying card"
  • the height of the input fields

    Declaration

    Swift

    public var inputFieldHeight: CGFloat = 48
  • the message that is shown below the input fields the ensure safety when entering card information

    Declaration

    Swift

    public var securityMessageString = "Your card details are encrypted using SSL before transmission to our secure payment service provider. They will not be stored on this device or on our servers."
  • the text size of the security message

    Declaration

    Swift

    public var securityMessageTextSize: CGFloat = 12
  • Helper method to identifiy whether to use a dark or light theme

    Declaration

    Swift

    public func colorMode() -> Bool

    Return Value

    A boolean indicating to use dark or light mode

  • The default text color

    Declaration

    Swift

    public var judoTextColor: UIColor?
  • The default navigation bar title color

    Declaration

    Swift

    public var judoNavigationBarTitleColor: UIColor?
  • The color that is used for active input fields

    Declaration

    Swift

    public var judoInputFieldTextColor: UIColor?
  • The color that is used for the placeholders of the input fields

    Declaration

    Swift

    public var judoPlaceholderTextColor: UIColor?
  • The color that is used for the border color of the input fields

    Declaration

    Swift

    public var judoInputFieldBorderColor: UIColor?
  • The background color of the contentView

    Declaration

    Swift

    public var judoContentViewBackgroundColor: UIColor?
  • The button color

    Declaration

    Swift

    public var judoButtonColor: UIColor?
  • The title color of the button

    Declaration

    Swift

    public var judoButtonTitleColor: UIColor?
  • The background color of the loadingView

    Declaration

    Swift

    public var judoLoadingBackgroundColor: UIColor?
  • The color that is used when an error occurs during entry

    Declaration

    Swift

    public var judoErrorColor: UIColor?
  • The color of the block that is shown when something is loading

    Declaration

    Swift

    public var judoLoadingBlockViewColor: UIColor?
  • Input field background color

    Declaration

    Swift

    public var judoInputFieldBackgroundColor: UIColor?
  • The default text color

    Declaration

    Swift

    public func getTextColor() -> UIColor

    Return Value

    A UIColor object

  • The default text color

    Declaration

    Swift

    public func getNavigationBarTitleColor() -> UIColor

    Return Value

    A UIColor object

  • The color that is used for active input fields

    Declaration

    Swift

    public func getInputFieldTextColor() -> UIColor

    Return Value

    A UIColor object

  • The color that is used for the placeholders of the input fields

    Declaration

    Swift

    public func getPlaceholderTextColor() -> UIColor

    Return Value

    A UIColor object

  • The color that is used for the border color of the input fields

    Declaration

    Swift

    public func getInputFieldBorderColor() -> UIColor

    Return Value

    A UIColor object

  • The background color of the contentView

    Declaration

    Swift

    public func getContentViewBackgroundColor() -> UIColor

    Return Value

    A UIColor object

  • The button color

    Declaration

    Swift

    public func getButtonColor() -> UIColor

    Return Value

    A UIColor object

  • The title color of the button

    Declaration

    Swift

    public func getButtonTitleColor() -> UIColor

    Return Value

    A UIColor object

  • The background color of the loadingView

    Declaration

    Swift

    public func getLoadingBackgroundColor() -> UIColor

    Return Value

    A UIColor object

  • The color that is used when an error occurs during entry

    Declaration

    Swift

    public func getErrorColor() -> UIColor

    Return Value

    A UIColor object

  • The color of the block that is shown when something is loading

    Declaration

    Swift

    public func getLoadingBlockViewColor() -> UIColor

    Return Value

    A UIColor object

  • Input field background color

    Declaration

    Swift

    public func getInputFieldBackgroundColor() -> UIColor

    Return Value

    A UIColor object