GiniPayBusinessConfiguration

public final class GiniPayBusinessConfiguration : NSObject

The GiniPayBusinessConfiguration class allows customizations to the look of the Gini Pay Business SDK. If there are limitations regarding which API can be used, this is clearly stated for the specific attribute.

Note

Text can also be set by using the appropriate keys in a Localizable.strings file in the projects bundle. The library will prefer whatever value is set in the following order: attribute in configuration, key in strings file in project bundle, key in strings file in GiniPayBusiness bundle.

Note

Images can only be set by providing images with the same filename in an assets file or as individual files in the projects bundle. The library will prefer whatever value is set in the following order: asset file in project bundle, asset file in GiniPayBusiness bundle. See the avalible images for overriding in GiniImages.xcassets.
  • Returns a GiniPayBusinessConfiguration instance which allows to set individual configurations to change the look and feel of the Gini Pay Business SDK.

    Declaration

    Swift

    public override init()

    Return Value

    Instance of GiniPayBusinessConfiguration.

  • Sets the backgroundColor on the payment review screen

    Declaration

    Swift

    @objc
    public var paymentScreenBackgroundColor: GiniColor
  • Sets the backgroundColor on the payment review screen for input fields container

    Declaration

    Swift

    @objc
    public var inputFieldsContainerBackgroundColor: GiniColor
  • Sets the backgroundColor on the payment review screen for pay button

    Declaration

    Swift

    @objc
    public var payButtonBackgroundColor: GiniColor
  • Sets the text color of the pay button on the payment review screen

    Declaration

    Swift

    @objc
    public var payButtonTextColor: GiniColor
  • Sets the corner radius of the pay button on the payment review screen

    Declaration

    Swift

    @objc
    public var payButtonCornerRadius: CGFloat
  • Sets the corner radius of the payment input fields on the payment review screen

    Declaration

    Swift

    @objc
    public var paymentInputFieldCornerRadius: CGFloat
  • Sets the border width of the payment input fields on the payment review screen

    Declaration

    Swift

    @objc
    public var paymentInputFieldBorderWidth: CGFloat
  • Sets the border width of the payment input field with selection style on the payment review screen

    Declaration

    Swift

    @objc
    public var paymentInputFieldSelectionStyleBorderWidth: CGFloat
  • Sets the border width of the payment input field with error style on the payment review screen

    Declaration

    Swift

    @objc
    public var paymentInputFieldErrorStyleBorderWidth: CGFloat
  • Sets the error style color and error text color for the payment input fields on the payment review screen

    Declaration

    Swift

    @objc
    public var paymentInputFieldErrorStyleColor: UIColor
  • Sets the selection style color for the payment input fields on the payment review screen

    Declaration

    Swift

    @objc
    public var paymentInputFieldSelectionStyleColor: UIColor
  • Sets the selection background color for the payment input fields on the payment review screen

    Declaration

    Swift

    @objc
    public var paymentInputFieldSelectionBackgroundColor: UIColor
  • Sets the background color of the payment input fields on the payment review screen

    Declaration

    Swift

    @objc
    public var paymentInputFieldBackgroundColor: GiniColor
  • Sets the text color of the payment input fields on the payment review screen

    Declaration

    Swift

    @objc
    public var paymentInputFieldTextColor: GiniColor
  • Sets the placeholder text color of the payment input fields on the payment review screen

    Declaration

    Swift

    @objc
    public var paymentInputFieldPlaceholderTextColor: GiniColor
  • Sets the text color of the bank button on the payment review screen

    Declaration

    Swift

    @objc
    public var bankButtonTextColor: GiniColor
  • Sets the font used in the screens by default.

    Declaration

    Swift

    @objc
    public lazy var customFont: GiniFont { get set }
  • Sets the color of the loading indicator on the review screen to the specified color.

    Declaration

    Swift

    @objc
    public var loadingIndicatorColor: UIColor
  • Sets the style of the loading indicator on the review screen.

    Declaration

    Swift

    @objc
    public var loadingIndicatorStyle: UIActivityIndicatorView.Style
  • Sets the scale of the loading indicator on the review screen.

    Declaration

    Swift

    @objc
    public var loadingIndicatorScale: CGFloat
  • Sets the current page indicator on the review screen to the specified color.

    Declaration

    Swift

    @objc
    public var currentPageIndicatorTintColor: GiniColor
  • Sets the page indicator on the review screen to the specified color.

    Declaration

    Swift

    @objc
    public var pageIndicatorTintColor: GiniColor
  • Set to true to show a close button on the payment review screen.

    Declaration

    Swift

    @objc
    public var showPaymentReviewCloseButton: Bool