Classes
The following classes are available globally.
-
A type representing different card schemes and their associated properties.
See moreDeclaration
Swift
@objc public final class CardScheme : NSObject, OptionSet, CaseIterable -
A configuration object that manages the global settings for the Nexi Paygate SDK.
This class conforms to
See moreObservableObject, 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.Declaration
Swift
public class NexiConfiguration : ObservableObject -
A concrete, generic implementation of
PaymentRequestReceiver.This class is generic over a
See morePayloadtype, allowing it to be configured to process a specific kind of payment request.Declaration
Swift
public final class MerchantRequestReceiver<Payload> : PaymentRequestReceiver -
The main entry point for interacting with the Nexi Paygate SDK.
See moreNexiCoreprovides a centralized interface for configuring the SDK, managing global settings, and initiating payment flows (Card and Apple Pay). It also exposes helper methods for creating payment views.Declaration
Swift
public final class NexiCore : NSObject -
A manager class responsible for handling the lifecycle of an Apple Pay payment.
This class orchestrates the payment flow, bridging the gap between the UI and the internal Finite State Machine (FSM) that processes the transaction. It conforms to
See moreApplePayPaymentProcess.Declaration
Swift
public class ApplePayPayment : ApplePayPaymentProcess -
A manager class responsible for handling the lifecycle of a direct Card payment.
This class manages the state of card entry fields (number, expiry, CVV, holder name), validates user input, and orchestrates the transition to the authorization phase. It conforms to
See moreObservableObjectto drive SwiftUI or Combine-based UIs.Declaration
Swift
public class CardPayment : ObservableObject, PaymentProcessAPI, CardProcess, PaymentProcessEditable
Classes Reference