Enumerations

The following enumerations are available globally.

DefaultCardViewLanguage

  • DefaultCardViewLanguage enum represents default SDK-defined definitions for CardView’s set of displayable strings.

    See more

    Declaration

    Swift

    public enum DefaultCardViewLanguage : String
    extension DefaultCardViewLanguage: CardViewLanguage
  • AccessToken enum represents current environmnet:production or test. Associated values contain access token value for corresponding environment.

    See more

    Declaration

    Swift

    public enum AccessToken
  • CardEntryStatus enum represents the status of card entry. It includes active, invalid, valid, and processing cases.ww

    See more

    Declaration

    Swift

    public enum CardEntryStatus : Int
  • WalletPaymentStatus enum represents the status of PayPal payment. It includes idle and processing cases.

    See more

    Declaration

    Swift

    public enum WalletPaymentStatus
  • PaygateError defines the possible errors that can occur when interacting with the NexiPaygate SDK.

    This enum conforms to the Error and Equatable protocols, enabling it to be used for error handling and comparison. The errors encapsulate a range of potential issues, from generic request failures to specific HTTP response status codes.

    • Cases:
      • threeDS: Wraps errors that occur during the 3D Secure authentication process.
      • api: Wraps errors related to network API failures and response validation.
      • paymentProcessing: Wraps general payment processing errors within the SDK.
      • applePayProcessing: Wraps errors specific to Apple Pay transaction handling.
    See more

    Declaration

    Swift

    public enum PaygateError : Error, Equatable
  • Represents events triggered by the card details entry form.

    Used in card views as a callback message to communicate user actions or form status updates.

    See more

    Declaration

    Swift

    public enum FormEvent
  • The result of a payment process flow.

    This enum encapsulates the possible outcomes of attempting a payment transaction, including success, user cancellation, or failure due to an error.

    See more

    Declaration

    Swift

    public enum PaymentProcessResult : Equatable
  • Defines the visibility and labeling options for the “Save Card” toggle in the payment form.

    See more

    Declaration

    Swift

    public enum SaveCardToggleOption : Equatable
  • A namespace for accessing SDK-specific resources.

    See more

    Declaration

    Swift

    public enum SDKResources