STPThreeDSUICustomization
public class STPThreeDSUICustomization : NSObject
The STPThreeDSUICustomization
provides configuration for UI elements displayed during 3D Secure authentication.
Note: It’s important to configure this object appropriately before calling any STPPaymentHandler
APIs.
The API makes a copy of the customization settings you provide; it ignores any subsequent changes you
make to your STPThreeDSUICustomization
instance.
-
The default settings. See individual properties for their default values.
Declaration
Swift
@objc public class func defaultSettings() -> STPThreeDSUICustomization
-
Provides custom settings for the UINavigationBar of all UIViewControllers displayed during 3D Secure authentication. The default is
STPThreeDSNavigationBarCustomization.defaultSettings()
.Declaration
Swift
@objc public var navigationBarCustomization: STPThreeDSNavigationBarCustomization { get set }
-
Provides custom settings for labels. The default is
STPThreeDSLabelCustomization.defaultSettings()
.Declaration
Swift
@objc public var labelCustomization: STPThreeDSLabelCustomization { get set }
-
Provides custom settings for text fields. The default is
STPThreeDSTextFieldCustomization.defaultSettings()
.Declaration
Swift
@objc public var textFieldCustomization: STPThreeDSTextFieldCustomization { get set }
-
The primary background color of all UIViewControllers displayed during 3D Secure authentication. Defaults to white.
Declaration
Swift
@objc public var backgroundColor: UIColor { get set }
-
Provides custom settings for the footer the challenge view can display containing additional details. The default is
STPThreeDSFooterCustomization.defaultSettings()
.Declaration
Swift
@objc public var footerCustomization: STPThreeDSFooterCustomization { get set }
-
Sets a given button customization for the specified type.
Declaration
Swift
@objc(setButtonCustomization:forType:) public func setButtonCustomization( _ buttonCustomization: STPThreeDSButtonCustomization, for buttonType: STPThreeDSCustomizationButtonType )
Parameters
buttonCustomization
The buttom customization to use.
buttonType
The type of button to use the customization for.
-
Retrieves a button customization object for the given button type.
Seealso
STPThreeDSButtonCustomizationDeclaration
Swift
@objc(buttonCustomizationForButtonType:) public func buttonCustomization( for buttonType: STPThreeDSCustomizationButtonType ) -> STPThreeDSButtonCustomization
Parameters
buttonType
The button type to retrieve a customization object for.
Return Value
A button customization object, or the default if none was set.
-
Provides custom settings for radio buttons and checkboxes. The default is
STPThreeDSSelectionCustomization.defaultSettings()
.Declaration
Swift
@objc public var selectionCustomization: STPThreeDSSelectionCustomization { get set }
-
The style of
UIActivityIndicatorView
s displayed. This should contrast withbackgroundColor
. Defaults to gray.Declaration
Swift
@objc public var activityIndicatorViewStyle: UIActivityIndicatorView.Style { get set }
-
The style of the
UIBlurEffect
displayed underneath theUIActivityIndicatorView
. Defaults toUIBlurEffectStyleLight
.Declaration
Swift
@objc public var blurStyle: UIBlurEffect.Style { get set }