Enumerations
The following enumerations are available globally.
-
The result of an attempt to confirm a PaymentIntent or SetupIntent
See moreDeclaration
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 moreDeclaration
Swift
public enum PaymentSheetError : Error
-
What set of billing address information you need to collect from your user.
@note If the user is from a country that does not use zip/postal codes, the user may not be asked for one regardless of this setting.
See moreDeclaration
Swift
@objc public enum STPBillingAddressFields : UInt
-
Possible validation states for a bank account.
See moreDeclaration
Swift
@objc public enum STPBankAccountStatus : Int
-
Error codes generated by STPBankAccountCollector
See moreDeclaration
Swift
@objc public enum STPCollectBankAccountError : Int
-
The type of entity that holds a bank account.
See moreDeclaration
Swift
@objc public enum STPBankAccountHolderType : Int
-
The payment methods supported by STPBankSelectionViewController.
See moreDeclaration
Swift
@objc public enum STPBankSelectionMethod : Int
-
These values control the labels used in the shipping info collection form.
See moreDeclaration
Swift
@objc public enum STPShippingType : Int
-
An enum representing the status of a shipping address validation.
See moreDeclaration
Swift
@objc public enum STPShippingStatus : Int
-
An enum representing the status of a payment requested from the user.
See moreDeclaration
Swift
@objc public enum STPPaymentStatus : Int
-
An enum representing the success and error states of PIN management
See moreDeclaration
Swift
@objc public enum STPPinStatus : Int
-
The various funding sources for a payment card.
See moreDeclaration
Swift
@objc public enum STPCardFundingType : Int
-
The various card brands to which a payment card can belong.
See moreDeclaration
Swift
@objc public enum STPCardBrand : Int
-
Options for configuring the display of an
See moreSTPCardFormView
instance.Declaration
Swift
@objc public enum STPCardFormViewStyle : Int
-
These fields indicate whether a card field represents a valid value, invalid value, or incomplete value.
See moreDeclaration
Swift
@objc public enum STPCardValidationState : Int
-
The business type of the Connect account.
See moreDeclaration
Swift
@objc public enum STPConnectAccountBusinessType : Int
-
The various bank brands available for FPX payments.
See moreDeclaration
Swift
@objc public enum STPFPXBankBrand : Int
-
Declaration
Swift
@objc public enum STPFilePurpose : Int
-
Types of next actions for
See moreSTPPaymentIntent
andSTPSetupIntent
. You shouldn’t need to inspect this yourself;STPPaymentHandler
will handle any next actions for you.Declaration
Swift
@objc public enum STPIntentActionType : Int
-
The type of the Klarna line item.
See moreDeclaration
Swift
@objc public enum STPKlarnaLineItemType : Int
-
The type of customer acceptance information included with the Mandate.
See moreDeclaration
Swift
@objc public enum STPMandateCustomerAcceptanceType : Int
-
See moreSTPPaymentHandlerActionStatus
represents the possible outcomes of requesting an action bySTPPaymentHandler
. An action could be confirming and/or handling the next action for a PaymentIntent.Declaration
Swift
@objc public enum STPPaymentHandlerActionStatus : Int
-
Error codes generated by
See moreSTPPaymentHandler
Declaration
Swift
@objc public enum STPPaymentHandlerErrorCode : Int
-
Capture methods for a STPPaymentIntent
See moreDeclaration
Swift
@objc public enum STPPaymentIntentCaptureMethod : Int
-
Confirmation methods for a STPPaymentIntent
See moreDeclaration
Swift
@objc public enum STPPaymentIntentConfirmationMethod : Int
-
Status types for an STPPaymentIntent
See moreDeclaration
Swift
@objc public enum STPPaymentIntentStatus : Int
-
Indicates how you intend to use the payment method that your customer provides after the current payment completes. If applicable, additional authentication may be performed to comply with regional legislation or network rules required to enable the usage of the same payment method for additional payments.
See moreDeclaration
Swift
@objc public enum STPPaymentIntentSetupFutureUsage : Int
-
Types of Actions from a
See moreSTPPaymentIntent
, when the payment intent status isSTPPaymentIntentStatusRequiresAction
.Declaration
Swift
@objc public enum STPPaymentIntentActionType : Int
-
Types of Source Actions from a
See moreSTPPaymentIntent
, when the payment intent status isSTPPaymentIntentStatusRequiresSourceAction
. @deprecated UseSTPPaymentIntentActionType
instead.Declaration
Swift
@available(*, deprecated, renamed: "STPIntentActionType", message: "Use STPIntentActionType instead") @objc public enum STPPaymentIntentSourceActionType : Int
-
The type of the error represented by
See moreSTPPaymentIntentLastPaymentError
. Some STPPaymentIntentLastPaymentError properties are only populated for certain error types.Declaration
Swift
@objc public enum STPPaymentIntentLastPaymentErrorType : Int
-
The result of a check on a Card address or CVC.
See moreDeclaration
Swift
@objc public enum STPPaymentMethodCardCheckResult : Int
-
The type of Card Wallet.
See moreDeclaration
Swift
@objc public enum STPPaymentMethodCardWalletType : Int
-
The type of the PaymentMethod.
See moreDeclaration
Swift
@objc public enum STPPaymentMethodType : Int
-
Account holder type
See moreDeclaration
Swift
@objc public enum STPPaymentMethodUSBankAccountHolderType : Int
-
Account type
See moreDeclaration
Swift
@objc public enum STPPaymentMethodUSBankAccountType : Int
-
Error codes specific to
See moreSTPRedirectContext
Declaration
Swift
@objc public enum STPRedirectContextError : Int
-
Possible states for the redirect context to be in
See moreDeclaration
Swift
@objc public enum STPRedirectContextState : Int
-
Status types for an STPSetupIntent
See moreDeclaration
Swift
@objc public enum STPSetupIntentStatus : Int
-
Indicates how the payment method is intended to be used in the future.
See moreDeclaration
Swift
@objc public enum STPSetupIntentUsage : Int
-
The type of the error represented by
See moreSTPSetupIntentLastSetupError
. Some STPSetupIntentLastError properties are only populated for certain error types.Declaration
Swift
@objc public enum STPSetupIntentLastSetupErrorType : UInt
-
The status of this card’s 3D Secure support.
See moreDeclaration
Swift
@objc public enum STPSourceCard3DSecureStatus : Int
-
Authentication flows for a Source
See moreDeclaration
Swift
@objc public enum STPSourceFlow : Int
-
Usage types for a Source
See moreDeclaration
Swift
@objc public enum STPSourceUsage : Int
-
Status types for a Source
See moreDeclaration
Swift
@objc public enum STPSourceStatus : Int
-
Declaration
Swift
@objc public enum STPSourceType : Int
-
Custom payment methods for Klarna
See moreDeclaration
Swift
@objc public enum STPKlarnaPaymentMethods : Int
-
Redirect status types for a Source.
See moreDeclaration
Swift
@objc public enum STPSourceRedirectStatus : Int
-
Verification status types for a Source.
See moreDeclaration
Swift
@objc public enum STPSourceVerificationStatus : Int
-
An enum that defines the different types of buttons that are able to be customized.
See moreDeclaration
Swift
@objc public enum STPThreeDSCustomizationButtonType : Int
-
An enumeration of the case transformations that can be applied to the button’s title
See moreDeclaration
Swift
@objc public enum STPThreeDSButtonTitleStyle : Int
-
Possible Token types
See moreDeclaration
Swift
@objc public enum STPTokenType : Int
-
Possible error code values for NSErrors with the
See moreStripeDomain
domainDeclaration
Swift
public enum STPErrorCode : Int
-
Possible string values you may receive when there was an error tokenizing a card. These values will come back in the error
See moreuserInfo
dictionary under theSTPCardErrorCodeKey
key.Declaration
Swift
public enum STPCardErrorCode : String