Skip to content
janice edited this page May 11, 2016 · 5 revisions
  • The following parameters can be accessed through your Session instance theme property:

General settings

/// A tint color that is used to generate a theme for the judo payment form
public var tintColor: UIColor = UIColor(red: 30/255, green: 120/255, blue: 160/255, alpha: 1.0)

/// Set address verification service to true to prompt the user to input country and post code information
public var avsEnabled: Bool = false

/// A boolean indicating whether a security message should be shown below the input
public var showSecurityMessage: Bool = false

/// An array of accepted card configurations (card network and card number length)
public var acceptedCardNetworks: [Card.Configuration] = [Card.Configuration(.AMEX, 15), Card.Configuration(.Visa, 16), Card.Configuration(.MasterCard, 16), Card.Configuration(.Maestro, 16)]

Colors

/// The default text color
public var judoTextColor: UIColor?

/// The color that is used for active input fields
public var judoInputFieldTextColor: UIColor?

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

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

/// The background color of the contentView
public var judoContentViewBackgroundColor: UIColor?

/// The button color
public var judoButtonColor: UIColor?

/// The title color of the button
public var judoButtonTitleColor: UIColor?

/// The background color of the loadingView
public var judoLoadingBackgroundColor: UIColor?

/// The color of card detail entry error messages
public var judoErrorColor: UIColor?

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

/// Input field background color
public var judoInputFieldBackgroundColor: UIColor?

Button titles

/// The title for the payment button
public var paymentButtonTitle = "Pay"
/// The title for the button when registering a card
public var registerCardButtonTitle = "Add card"
/// The title for the back button of the navigation controller
public var registerCardNavBarButtonTitle = "Add"
/// The title for the back button
public var backButtonTitle = "Back"

Page titles

/// The title for a payment
public var paymentTitle = "Payment"
/// The title for a card registration
public var registerCardTitle = "Add card"
/// The title for a refund
public var refundTitle = "Refund"
/// The title for an authentication
public var authenticationTitle = "Authentication"

Loading block titles

/// When a register card transaction is currently running
public var loadingIndicatorRegisterCardTitle = "Adding card..."
/// The title of the loading indicator during a transaction
public var loadingIndicatorProcessingTitle = "Processing payment..."
/// The title of the loading indicator during a redirect to a 3D Secure webview
public var redirecting3DSTitle = "Redirecting..."
/// The title of the loading indicator during the verification of the transaction
public var verifying3DSPaymentTitle = "Verifying payment"
/// The title of the loading indicator during the verification of the card registration
public var verifying3DSRegisterCardTitle = "Verifying card"

Input field parameters

/// The height of the input fields
public var inputFieldHeight: CGFloat = 48

Security message

/// The message that is shown below the input fields to ensure safety when entering card information
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
public var securityMessageTextSize: CGFloat = 12

Clone this wiki locally