Enumerations

The following enumerations are available globally.

  • The result of an attempt to confirm a PaymentIntent or SetupIntent

    See more

    Declaration

    Swift

    @frozen
    public enum PaymentSheetResult
  • Errors specific to PaymentSheet itself

    Most errors do not originate from PaymentSheet itself; instead, they come from the Stripe API or other SDK components like STPPaymentHandler, PassKit (Apple Pay), etc.

    See more

    Declaration

    Swift

    public enum PaymentSheetError : Error
  • Possible error code values for NSErrors with the StripeDomain domain.

    See more

    Declaration

    Swift

    @objc
    public enum STPErrorCode : Int

STPCardErrorCodeKeys

  • Possible string values you may receive when there was an error tokenizing a card.

    These values will come back in the error userInfo dictionary under the STPCardErrorCodeKey key.

    See more

    Declaration

    Swift

    public enum STPCardErrorCode : String