Classes

The following classes are available globally.

  • A type representing different card schemes and their associated properties.

    See more

    Declaration

    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 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.

    See more

    Declaration

    Swift

    public class NexiConfiguration : ObservableObject
  • A concrete, generic implementation of PaymentRequestReceiver.

    This class is generic over a Payload type, allowing it to be configured to process a specific kind of payment request.

    See more

    Declaration

    Swift

    public final class MerchantRequestReceiver<Payload> : PaymentRequestReceiver
  • The main entry point for interacting with the Nexi Paygate SDK.

    NexiCore provides 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.

    See more

    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 ApplePayPaymentProcess.

    See more

    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 ObservableObject to drive SwiftUI or Combine-based UIs.

    See more

    Declaration

    Swift

    public class CardPayment : ObservableObject, PaymentProcessAPI, CardProcess, PaymentProcessEditable