Card Component

  • A component that provides a form for card payments.

    See more

    Declaration

    Swift

    public final class CardComponent : PaymentComponent, PresentableComponent, Localizable
  • Contains the details provided by the card component.

    See more

    Declaration

    Swift

    public struct CardDetails : PaymentMethodDetails
  • An object that provides static methods for encrypting card information and retrieving public keys from the server.

    See more

    Declaration

    Swift

    public final class CardEncryptor
  • Enum containing most known types of credit and debit cards.

    See more

    Declaration

    Swift

    public enum CardType : String, CaseIterable
  • Detects the card type for any given card number. The card type detections are always estimations, as a card type can never be detected with 100% accuraccy on the client side.

    See more

    Declaration

    Swift

    public final class CardTypeDetector
  • Formats a card’s expiration date for display. The input is expected to be sanitized as “MMYY”, which will result in “MM / YY”.

    Declaration

    Swift

    public final class CardExpiryDateFormatter : NumericFormatter
  • Validates a card’s expiration date. The input is expected to be sanitized as “MMYY”. Validation will fail when the format is invalid or the date is in the past.

    Declaration

    Swift

    public final class CardExpiryDateValidator : Validator
  • Formats a card’s number for display.

    See more

    Declaration

    Swift

    public final class CardNumberFormatter : NumericFormatter
  • Validates a card’s number. The input is expected to be sanitized.

    Declaration

    Swift

    public final class CardNumberValidator : Validator