Protocols

The following protocols are available globally.

  • A protocol that defines the color palette used in the Card Form.

    See more

    Declaration

    Swift

    public protocol CardFormColors

TextField Customization

  • A protocol that defines the styling for a single text field component.

    See more

    Declaration

    Swift

    public protocol TextFieldStyling
  • A protocol that categorizes the different text fields available for customization.

    See more

    Declaration

    Swift

    public protocol TextFieldCategories

Text Label Customization

  • A protocol that defines the styling for a single text field component.

    See more

    Declaration

    Swift

    public protocol TextLabelStyling
  • A protocol that categorizes the different text fields available for customization.

    See more

    Declaration

    Swift

    public protocol TextLabelCategories

Layout Customization

  • A protocol that defines layout-related properties for the card entry form.

    See more

    Declaration

    Swift

    public protocol LayoutCategories

CardLogo Banner Customization

  • A protocol that defines layout-related properties for the card entry form.

    See more

    Declaration

    Swift

    public protocol CardLogoBannerApperance

Main Appearance Protocol and Default Implementation

  • The main protocol that contains all customizable components of the SDK. Developers can create their own type conforming to this protocol to provide a custom theme.

    See more

    Declaration

    Swift

    public protocol CustomizableComponents

CardViewLanguage

  • CardViewLanguage protocol defines a set of strings representing the language used by CardView components.

    See more

    Declaration

    Swift

    public protocol CardViewLanguage
  • A protocol that defines a receiver for payment requests.

    This protocol is generic over a Payload type, ensuring that any conforming type can only succeed with its specific, required data structure.

    See more

    Declaration

    Swift

    public protocol PaymentRequestReceiver
  • A protocol that provides a method to obtain a specific payment request receiver.

    Implementing types must define the exact Receiver they provide, which in turn defines the required Payload.

    See more

    Declaration

    Swift

    public protocol PaymentRequestReceivingAPI
  • CardMerchantPreferences protocol defines the preferences for a merchant. It includes a set of excluded card schemes and an initializer.

    See more

    Declaration

    Swift

    public protocol CardMerchantPreferences