OPPCheckoutTheme
@objc
public final class OPPCheckoutTheme : OPPTheme
Class which used to visually style in-App payment pages by customizing colors and fonts. There are two ready to use styles. You can leave it as is or override some properties.
-
Predefined style for checkout screens (default is light theme).
Declaration
Swift
@objc public var style: OPPCheckoutThemeStyle { get set }
-
Background color for any views in this theme.
Declaration
Swift
@objc public var primaryBackgroundColor: UIColor!
-
Text color for any important labels in a view.
Declaration
Swift
@objc public var primaryForegroundColor: UIColor!
-
The color of the confirmation buttons.
Declaration
Swift
@objc public var confirmationButtonColor: UIColor!
-
Accent color used for active elements (like text fields, switch element).
Declaration
Swift
@objc public var accentColor: UIColor!
-
Text color for confirmation buttons.
Declaration
Swift
@objc public var confirmationButtonTextColor: UIColor!
-
Input field text color.
Declaration
Swift
@objc public var textFieldTextColor: UIColor!
-
Placeholder color for text fields.
Declaration
Swift
@objc public var textFieldPlaceholderColor: UIColor!
-
Border color of inactive text field. accentColor is used for active state.
Declaration
Swift
@objc public var textFieldBorderColor: UIColor!
-
Color for rendering any error messages or views.
Declaration
Swift
@objc public var errorColor: UIColor!
-
Navigation bar tint color.
Declaration
Swift
@objc public var navigationBarTintColor: UIColor!
-
Navigation bar background color.
Declaration
Swift
@objc public var navigationBarBackgroundColor: UIColor!
-
Text attributes for navigation bar title.
Declaration
Swift
@objc public var navigationBarTextAttributes: NSDictionary!
-
Text attributes for navigation bar item titles.
Declaration
Swift
@objc public var navigationItemTextAttributes: NSDictionary?
-
Custom text for the right bar button in the navigation bar. Localized text is expected. SDK is NOT localizing this text. Default value is “Cancel”.
Declaration
Swift
@objc public var cancelBarButtonText: String?
-
Custom image for the right bar button in the navigation bar. If image is not set
cancelBarButtonText
is shown.Declaration
Swift
@objc public var cancelBarButtonImage: UIImage?
-
Tint color for cell on the table view.
Declaration
Swift
@objc public var cellTintColor: UIColor!
-
Highlighted background color for cell on the table view.
Declaration
Swift
@objc public var cellHighlightedBackgroundColor: UIColor!
-
Text label highlighted color.
Declaration
Swift
@objc public var cellHighlightedTextColor: UIColor!
-
Text font for cell on the table view.
Declaration
Swift
@objc public var cellTextFont: UIFont!
-
Background color of section.
Declaration
Swift
@objc public var sectionBackgroundColor: UIColor!
-
Text color of section title.
Declaration
Swift
@objc public var sectionTextColor: UIColor!
-
Font of section title.
Declaration
Swift
@objc public var sectionFont: UIFont!
-
Color for separator lines.
Declaration
Swift
@objc public var separatorColor: UIColor!
-
Background color for payment brand icons.
Declaration
Swift
@objc public var paymentBrandIconBackgroundColor: UIColor!
-
Border color for payment brand icons.
Declaration
Swift
@objc public var paymentBrandIconBorderColor: UIColor!
-
Background color for stored payment method icons.
Declaration
Swift
@objc public var storedPaymentMethodIconBackgroundColor: UIColor!
-
Border color for stored payment method icons.
Declaration
Swift
@objc public var storedPaymentMethodIconBorderColor: UIColor!
-
Text font for any important labels in a view.
Declaration
Swift
@objc public var primaryFont: UIFont!
-
Text font for any other labels in a view.
Declaration
Swift
@objc public var secondaryFont: UIFont!
-
Text font for any text fields.
Declaration
Swift
@objc public var textFieldFont: UIFont!
-
Text font for confirmation button.
Declaration
Swift
@objc public var confirmationButtonFont: UIFont!
-
Text font for rendering any error messages.
Declaration
Swift
@objc public var errorFont: UIFont!
-
Text font for amount label.
Declaration
Swift
@objc public var amountLabelFont: UIFont!
-
Creates and returns theme initialized with the
OPPCheckoutThemeStyle
.Declaration
Swift
@objc public init(style: OPPCheckoutThemeStyle)
Parameters
style
Style for checkout screens.
Return Value
Returns an object representing OPPCheckoutThemeStyle.