NexiConfiguration
public class NexiConfiguration : ObservableObject
A configuration object that manages the global settings for the Nexi Paygate SDK.
This class conforms to ObservableObject, allowing SwiftUI views to subscribe to changes
and automatically update when configuration properties are modified.
It serves as the single source of truth for language, appearance, and enabled card schemes.
-
The language used for displaying card input fields and related UI components.
When set to a specific language (e.g.,
.german), the SDK will force that language. When set to.automatic(the default), the SDK will resolve the language based on the device’s system settings at runtime.Note
Changes to this property will trigger UI updates for any observing views.Declaration
Swift
@Published public var language: CardViewLanguage { get set } -
The visual appearance configuration for the SDK’s UI components.
Use this property to customize colors, fonts, and other visual elements of the payment screens. The default value is
CustomizableComponentsStandard().Declaration
Swift
@Published public var appearance: CustomizableComponents { get set } -
A set of card schemes that are enabled for processing.
This collection determines which card brands (e.g., Visa, Mastercard, Dankort) are accepted. The default set includes
.visaand.masterCardDeclaration
Swift
@Published public var enabledCardSchemes: Set<CardScheme> { get set }