Classes
The following classes are available globally.
-
A top-level class that imports the rest of the Stripe SDK.
See moreDeclaration
Swift
@objc public class StripeAPI : NSObject
-
Parameters to use with
See moreSTPBankAccountCollector
to collect bank account details for payments. @seeSTPBankAccountCollector
Declaration
Swift
public class STPCollectBankAccountParams : NSObject
-
Alipay options to pass to
See moreSTPConfirmPaymentMethodOptions
`Declaration
Swift
public class STPConfirmAlipayOptions : NSObject
extension STPConfirmAlipayOptions: STPFormEncodable
-
BLIK options to pass to
See moreSTPConfirmPaymentMethodOptions
`Declaration
Swift
public class STPConfirmBLIKOptions : NSObject
extension STPConfirmBLIKOptions: STPFormEncodable
-
Options to update a Card PaymentMethod during PaymentIntent confirmation.
See moreDeclaration
Swift
public class STPConfirmCardOptions : NSObject
extension STPConfirmCardOptions: STPFormEncodable
-
Options to update the associated PaymentMethod during PaymentIntent confirmation.
Seealso
https://stripe.com/docs/api/payment_intents/confirm#confirm_payment_intent-payment_method_optionsDeclaration
Swift
public class STPConfirmPaymentMethodOptions : NSObject
extension STPConfirmPaymentMethodOptions: STPFormEncodable
-
Options for US Bank Account Payment Methods during PaymentIntent or SetupIntent confirmation
Seealso
seealso https://stripe.com/docs/api/payment_intents/confirm#confirm_payment_intent-payment_method_options-us_bank_accountDeclaration
Swift
public class STPConfirmUSBankAccountOptions : NSObject
extension STPConfirmUSBankAccountOptions: STPFormEncodable
-
WeChat Pay options to pass to
See moreSTPConfirmPaymentMethodOptions
`Declaration
Swift
public class STPConfirmWeChatPayOptions : NSObject
extension STPConfirmWeChatPayOptions: STPFormEncodable
-
A PaymentIntent tracks the process of collecting a payment from your customer.
See moreDeclaration
-
Action details for an STPPaymentIntent. This is a container for the various types that are available. Check the
type
to see which one it is, and then use the related property for the details necessary to handle it. @deprecated UseSTPIntentAction
instead.Declaration
Swift
@available(*, deprecated, renamed: "STPIntentAction", message: "Use `STPIntentAction` instead.") @objc public final class STPPaymentIntentAction : STPIntentAction
-
A value for
See morecode
indicating the provided payment method failed authentication./// The payment error encountered in the previous PaymentIntent confirmation.Declaration
Swift
public class STPPaymentIntentLastPaymentError : NSObject
extension STPPaymentIntentLastPaymentError: STPAPIResponseDecodable
-
An object representing parameters used to confirm a PaymentIntent object. A PaymentIntent must have a PaymentMethod or Source associated in order to successfully confirm it. That PaymentMethod or Source can either be:
- created during confirmation, by passing in a
STPPaymentMethodParams
orSTPSourceParams
object in thepaymentMethodParams
orsourceParams
field - a pre-existing PaymentMethod or Source can be associated by passing its id in the
paymentMethodId
orsourceId
field - or already set via your backend, either when creating or updating the PaymentIntent
Declaration
Swift
public class STPPaymentIntentParams : NSObject
extension STPPaymentIntentParams: STPFormEncodable
extension STPPaymentIntentParams: NSCopying
- created during confirmation, by passing in a
-
Shipping information for a PaymentIntent You cannot directly instantiate an
See moreSTPPaymentIntentShippingDetails
. You should only use one that is part of an existingSTPPaymentMethod
object.Declaration
Swift
public class STPPaymentIntentShippingDetails : NSObject
extension STPPaymentIntentShippingDetails: STPAPIResponseDecodable
-
Shipping address for a PaymentIntent’s shipping details. You cannot directly instantiate an
See moreSTPPaymentIntentShippingDetailsAddress
. You should only use one that is part of an existingSTPPaymentMethod
object.Declaration
Swift
public class STPPaymentIntentShippingDetailsAddress : NSObject
extension STPPaymentIntentShippingDetailsAddress: STPAPIResponseDecodable
-
Shipping address for a PaymentIntent’s shipping details.
See moreDeclaration
Swift
public class STPPaymentIntentShippingDetailsAddressParams : NSObject
extension STPPaymentIntentShippingDetailsAddressParams: STPFormEncodable
extension STPPaymentIntentShippingDetailsAddressParams: NSCopying
-
Shipping information for a PaymentIntent
See moreDeclaration
Swift
public class STPPaymentIntentShippingDetailsParams : NSObject
extension STPPaymentIntentShippingDetailsParams: STPFormEncodable
extension STPPaymentIntentShippingDetailsParams: NSCopying
-
PaymentMethod objects represent your customer’s payment instruments. They can be used with PaymentIntents to collect payments.
See moreDeclaration
Swift
public class STPPaymentMethod : NSObject, STPAPIResponseDecodable
-
The billing address, a property on
See moreSTPPaymentMethodBillingDetails
Declaration
Swift
public class STPPaymentMethodAddress : NSObject, STPAPIResponseDecodable, STPFormEncodable
-
Billing information associated with a
See moreSTPPaymentMethod
that may be used or required by particular types of payment methods.Declaration
Swift
public class STPPaymentMethodBillingDetails : NSObject, STPAPIResponseDecodable, STPFormEncodable
-
An object representing parameters used to create a PaymentMethod object. @note To create a PaymentMethod from an Apple Pay PKPaymentToken, see
See moreSTPAPIClient createPaymentMethodWithPayment:completion:
Declaration
Swift
public class STPPaymentMethodParams : NSObject, STPFormEncodable
-
An AU BECS Debit Payment Method.
See moreDeclaration
Swift
public class STPPaymentMethodAUBECSDebit : NSObject, STPAPIResponseDecodable
-
An object representing parameters used to create an AU BECS Debit Payment Method
See moreDeclaration
Swift
public class STPPaymentMethodAUBECSDebitParams : NSObject, STPFormEncodable
-
The Affirm Payment Method.
Seealso
Declaration
Swift
public class STPPaymentMethodAffirm : NSObject, STPAPIResponseDecodable
-
An object representing parameters used to create an Affirm Payment Method
See moreDeclaration
Swift
public class STPPaymentMethodAffirmParams : NSObject, STPFormEncodable
-
An AfterpayClearpay Payment Method.
See moreDeclaration
Swift
public class STPPaymentMethodAfterpayClearpay : NSObject, STPAPIResponseDecodable
-
An object representing parameters used to create an AfterpayClearpay Payment Method
See moreDeclaration
Swift
public class STPPaymentMethodAfterpayClearpayParams : NSObject, STPFormEncodable
-
Contains details for an Alipay Payment Method.
Declaration
Swift
public class STPPaymentMethodAlipay : NSObject, STPAPIResponseDecodable
-
An object representing parameters used to create an Alipay Payment Method. There are currently no parameters to pass.
See moreDeclaration
Swift
public class STPPaymentMethodAlipayParams : NSObject, STPFormEncodable
-
Contains details for a BLIK Payment Method.
Declaration
Swift
public class STPPaymentMethodBLIK : NSObject, STPAPIResponseDecodable
-
An object representing parameters used to create a BLIK Payment Method There are currently no parameters to pass.
See moreDeclaration
Swift
@objc public class STPPaymentMethodBLIKParams : NSObject, STPFormEncodable
-
A Bacs Debit Payment Method.
See moreDeclaration
Swift
public class STPPaymentMethodBacsDebit : NSObject, STPAPIResponseDecodable
-
The user’s bank account details.
See moreDeclaration
Swift
public class STPPaymentMethodBacsDebitParams : NSObject, STPFormEncodable
-
Declaration
Swift
public class STPPaymentMethodBancontact : NSObject, STPAPIResponseDecodable
-
An object representing parameters used to create a Bancontact Payment Method
See moreDeclaration
Swift
public class STPPaymentMethodBancontactParams : NSObject, STPFormEncodable
-
Declaration
Swift
public class STPPaymentMethodBoleto : NSObject, STPAPIResponseDecodable
-
An object representing parameters used to create a Boleto Payment Method
See moreDeclaration
Swift
public class STPPaymentMethodBoletoParams : NSObject, STPFormEncodable
-
Contains details about a user’s credit card.
See moreDeclaration
Swift
public class STPPaymentMethodCard : NSObject, STPAPIResponseDecodable
-
Checks on Card address and CVC.
See moreDeclaration
Swift
public class STPPaymentMethodCardChecks : NSObject, STPAPIResponseDecodable
-
See moreSTPPaymentMethodCardNetworks
contains information about card networks that can be used to process a payment.Declaration
Swift
public class STPPaymentMethodCardNetworks : NSObject, STPAPIResponseDecodable
-
The user’s card details.
See moreDeclaration
Swift
public class STPPaymentMethodCardParams : NSObject, STPFormEncodable
-
Details about the Card Present payment method
See moreDeclaration
Swift
public class STPPaymentMethodCardPresent : NSObject, STPAPIResponseDecodable
-
A Card Wallet.
See moreDeclaration
Swift
public class STPPaymentMethodCardWallet : NSObject, STPAPIResponseDecodable
-
Declaration
Swift
public class STPPaymentMethodCardWalletMasterpass : NSObject, STPAPIResponseDecodable
-
Declaration
Swift
public class STPPaymentMethodCardWalletVisaCheckout : NSObject, STPAPIResponseDecodable
-
An EPS Payment Method.
See moreDeclaration
Swift
public class STPPaymentMethodEPS : NSObject, STPAPIResponseDecodable
-
An object representing parameters used to create a EPS Payment Method
See moreDeclaration
Swift
public class STPPaymentMethodEPSParams : NSObject, STPFormEncodable
-
An FPX Payment Method.
See moreDeclaration
Swift
public class STPPaymentMethodFPX : NSObject, STPAPIResponseDecodable
-
An object representing parameters used to create an FPX Payment Method
See moreDeclaration
Swift
public class STPPaymentMethodFPXParams : NSObject, STPFormEncodable
-
A giropay Payment Method.
See moreDeclaration
Swift
public class STPPaymentMethodGiropay : NSObject, STPAPIResponseDecodable
-
An object representing parameters used to create a giropay Payment Method
See moreDeclaration
Swift
public class STPPaymentMethodGiropayParams : NSObject, STPFormEncodable
-
A GrabPay PaymentMethod
See moreDeclaration
Swift
public class STPPaymentMethodGrabPay : NSObject, STPAPIResponseDecodable
-
An object representing parameters used to create a GrabPay Payment Method
See moreDeclaration
Swift
public class STPPaymentMethodGrabPayParams : NSObject, STPFormEncodable
-
The Klarna Payment Method.
Declaration
Swift
public class STPPaymentMethodKlarna : NSObject, STPAPIResponseDecodable
-
An object representing parameters used to create an Klarna Payment Method
See moreDeclaration
Swift
public class STPPaymentMethodKlarnaParams : NSObject, STPFormEncodable
-
A Link Payment Method.
See moreDeclaration
Swift
public class STPPaymentMethodLink : NSObject, STPAPIResponseDecodable
-
An object representing parameters used to create an Link Payment Method
See moreDeclaration
Swift
public class STPPaymentMethodLinkParams : NSObject, STPFormEncodable
-
A NetBanking Payment Method.
See moreDeclaration
Swift
public class STPPaymentMethodNetBanking : NSObject, STPAPIResponseDecodable
-
An object representing parameters used to create a NetBanking Payment Method
See moreDeclaration
Swift
public class STPPaymentMethodNetBankingParams : NSObject, STPFormEncodable
-
Declaration
Swift
public class STPPaymentMethodOXXO : NSObject, STPAPIResponseDecodable
-
An object representing parameters used to create an OXXO Payment Method
See moreDeclaration
Swift
public class STPPaymentMethodOXXOParams : NSObject, STPFormEncodable
-
Declaration
Swift
public class STPPaymentMethodPrzelewy24 : NSObject, STPAPIResponseDecodable
-
An object representing parameters used to create a Przelewy24 Payment Method
See moreDeclaration
Swift
public class STPPaymentMethodPrzelewy24Params : NSObject, STPFormEncodable
-
A SEPA Debit Payment Method.
See moreDeclaration
Swift
public class STPPaymentMethodSEPADebit : NSObject, STPAPIResponseDecodable
-
An object representing parameters used to create a SEPA Debit Payment Method
See moreDeclaration
Swift
public class STPPaymentMethodSEPADebitParams : NSObject, STPFormEncodable
-
A Sofort Payment Method.
See moreDeclaration
Swift
public class STPPaymentMethodSofort : NSObject, STPAPIResponseDecodable
-
An object representing parameters used to create a Sofort Payment Method
See moreDeclaration
Swift
public class STPPaymentMethodSofortParams : NSObject, STPFormEncodable
-
Contains details on how an
See moreSTPPaymentMethodCard
maybe be used for 3D Secure authentication.Declaration
Swift
public class STPPaymentMethodThreeDSecureUsage : NSObject, STPAPIResponseDecodable
-
A UPI Payment Method.
See moreDeclaration
Swift
public class STPPaymentMethodUPI : NSObject, STPAPIResponseDecodable
-
An object representing parameters used to create a UPI Payment Method
See moreDeclaration
Swift
public class STPPaymentMethodUPIParams : NSObject, STPFormEncodable
-
A US Bank Account Payment Method (ACH)
See moreDeclaration
Swift
public class STPPaymentMethodUSBankAccount : NSObject
-
Contains information about US bank account networks that can be used
See moreDeclaration
Swift
public class STPPaymentMethodUSBankAccountNetworks : NSObject
-
An object representing parameters used to create a US Bank Account Payment Method
See moreDeclaration
Swift
public class STPPaymentMethodUSBankAccountParams : NSObject
-
An iDEAL Payment Method.
See moreDeclaration
Swift
public class STPPaymentMethodiDEAL : NSObject, STPAPIResponseDecodable
-
An object representing parameters used to create an iDEAL Payment Method
See moreDeclaration
Swift
public class STPPaymentMethodiDEALParams : NSObject, STPFormEncodable
-
STPAddress Contains an address as represented by the Stripe API.
See moreDeclaration
Swift
public class STPAddress : NSObject
extension STPAddress: STPAPIResponseDecodable
extension STPAddress: STPFormEncodable
extension STPAddress: NSCopying
-
Contains
See moreSTPStringFromCardBrand
Declaration
Swift
public class STPCardBrandUtilities : NSObject
-
An address to use with
See moreSTPConnectAccountParams
.Declaration
Swift
public class STPConnectAccountAddress : NSObject
extension STPConnectAccountAddress: STPFormEncodable
-
Information about the company or business to use with
See moreSTPConnectAccountParams
.Declaration
Swift
public class STPConnectAccountCompanyParams : NSObject
extension STPConnectAccountCompanyParams: STPFormEncodable
-
Information about the person represented by the account for use with
See moreSTPConnectAccountParams
.Declaration
Swift
public class STPConnectAccountIndividualParams : NSObject
extension STPConnectAccountIndividualParams: STPFormEncodable
-
The individual’s verification document information for use with
See moreSTPConnectAccountIndividualParams
.Declaration
Swift
public class STPConnectAccountIndividualVerification : NSObject
extension STPConnectAccountIndividualVerification: STPFormEncodable
-
An identifying document, either a passport or local ID card for use with
See moreSTPConnectAccountIndividualVerification
.Declaration
Swift
public class STPConnectAccountVerificationDocument : NSObject
extension STPConnectAccountVerificationDocument: STPFormEncodable
-
An individual’s date of birth. See https://stripe.com/docs/api/tokens/create_account#create_account_token-account-individual-dob
See moreDeclaration
-
Parameters for creating a Connect Account token.
See moreDeclaration
Swift
public class STPConnectAccountParams : NSObject
extension STPConnectAccountParams: STPFormEncodable
-
Contains constants that represent different parts of a users contact/address information.
See moreDeclaration
Swift
@objc public class STPContactField : NSObject, RawRepresentable
-
An
See moreSTPCustomer
represents a deserialized Customer object from the Stripe API. You shouldn’t need to instantiate anSTPCustomer
– you should instead useSTPCustomerContext
to manage retrieving and updating a customer.Declaration
-
Use
See moreSTPCustomerDeserializer
to convert a response from the Stripe API into anSTPCustomer
object.STPCustomerDeserializer
expects the JSON response to be in the exact same format as the Stripe API.Declaration
Swift
public class STPCustomerDeserializer : NSObject
-
Convenience methods for using FPX bank brands.
See moreDeclaration
Swift
public class STPFPXBank : NSObject
-
Representation of a file upload object in the Stripe API.
See moreDeclaration
Swift
public class STPFile : NSObject, STPAPIResponseDecodable
-
Information related to a Stripe Issuing card, including the PIN
See moreDeclaration
Swift
public class STPIssuingCardPin : NSObject
extension STPIssuingCardPin: STPAPIResponseDecodable
-
Note
This API and the guide linked above require special permissions to use. Contact support@stripe.com if you’re interested.Declaration
Swift
public final class STPRadarSession : NSObject, STPAPIResponseDecodable
-
A token returned from submitting payment details to the Stripe API. You should not have to instantiate one of these directly.
See moreDeclaration
Swift
public class STPToken : NSObject, STPAPIResponseDecodable, STPSourceProtocol
-
A SetupIntent guides you through the process of setting up a customer’s payment credentials for future payments.
See moreDeclaration
Swift
public class STPSetupIntent : NSObject, STPAPIResponseDecodable
-
An object representing parameters to confirm a SetupIntent object. For example, you would confirm a SetupIntent when a customer hits the “Save” button on a payment method management view in your app. If the selected payment method does not require any additional steps from the customer, the SetupIntent’s status will transition to
See moreSTPSetupIntentStatusSucceeded
. Otherwise, it will transition toSTPSetupIntentStatusRequiresAction
, and suggest additional actions vianextAction
. Instead of passing this toSTPAPIClient.confirmSetupIntent(...)
directly, we recommend usingSTPPaymentHandler
to handle any additional steps for you.Declaration
Swift
public class STPSetupIntentConfirmParams : NSObject, NSCopying, STPFormEncodable
-
A value for
See morecode
indicating the provided payment method failed authentication./// The error encountered in the previous SetupIntent confirmation.Declaration
Swift
public class STPSetupIntentLastSetupError : NSObject, STPAPIResponseDecodable
-
Next action details for
See moreSTPPaymentIntent
andSTPSetupIntent
. This is a container for the various types that are available. Check thetype
to see which one it is, and then use the related property for the details necessary to handle it. You cannot directly instantiate anSTPIntentAction
.Declaration
-
Contains instructions for authenticating a payment by redirecting your customer to Alipay App or website. You cannot directly instantiate an
See moreSTPPaymentIntentActionAlipayHandleRedirect
.Declaration
Swift
public class STPIntentActionAlipayHandleRedirect : NSObject
extension STPIntentActionAlipayHandleRedirect: STPAPIResponseDecodable
-
Contains Boleto details necessary for the customer to complete the payment.
See moreDeclaration
Swift
public class STPIntentActionBoletoDisplayDetails : NSObject, STPAPIResponseDecodable
-
Contains OXXO details necessary for the customer to complete the payment.
See moreDeclaration
Swift
public class STPIntentActionOXXODisplayDetails : NSObject, STPAPIResponseDecodable
-
Contains instructions for authenticating a payment by redirecting your customer to another page or application. You cannot directly instantiate an
See moreSTPIntentActionRedirectToURL
.Declaration
Swift
public class STPIntentActionRedirectToURL : NSObject
extension STPIntentActionRedirectToURL: STPAPIResponseDecodable
-
Contains details describing microdeposits verification flow for US Bank Accounts.
See moreDeclaration
Swift
public class STPIntentActionVerifyWithMicrodeposits : NSObject
-
Contains instructions for authenticating a payment by redirecting your customer to WeChat Pay app. You cannot directly instantiate an
See moreSTPIntentActionWechatPayRedirectToApp
.Declaration
Swift
public class STPIntentActionWechatPayRedirectToApp : NSObject
extension STPIntentActionWechatPayRedirectToApp: STPAPIResponseDecodable
-
An object that contains details about the customer acceptance of the Mandate. - seealso: https://stripe.com/docs/api/payment_intents/confirm#confirm_payment_intent-mandate_data-customer_acceptance
See moreDeclaration
Swift
public class STPMandateCustomerAcceptanceParams : NSObject, STPFormEncodable
-
This object contains details about the Mandate to create. - seealso: https://stripe.com/docs/api/payment_intents/confirm#confirm_payment_intent-mandate_data
See moreDeclaration
-
Contains details about a Mandate accepted online. - seealso: https://stripe.com/docs/api/payment_intents/confirm#confirm_payment_intent-mandate_data-customer_acceptance-online
See moreDeclaration
Swift
public class STPMandateOnlineParams : NSObject
extension STPMandateOnlineParams: STPFormEncodable
-
Representation of a customer’s payment instrument created with the Stripe API. - seealso: https://stripe.com/docs/api#sources
See moreDeclaration
Swift
public class STPSource : NSObject, STPAPIResponseDecodable, STPSourceProtocol
-
Information about a source’s owner.
See moreDeclaration
Swift
public class STPSourceOwner : NSObject, STPAPIResponseDecodable
-
An object representing parameters used to create a Source object.
See moreDeclaration
Swift
public class STPSourceParams : NSObject, STPFormEncodable, NSCopying
-
Information related to a source’s receiver flow.
See moreDeclaration
Swift
public class STPSourceReceiver : NSObject, STPAPIResponseDecodable
-
Information related to a source’s redirect flow.
See moreDeclaration
Swift
public class STPSourceRedirect : NSObject, STPAPIResponseDecodable
-
Information related to a source’s verification flow.
See moreDeclaration
Swift
public class STPSourceVerification : NSObject, STPAPIResponseDecodable
-
Representation of a user’s bank account details that have been tokenized with the Stripe API.
See moreDeclaration
Swift
public class STPBankAccount : NSObject, STPAPIResponseDecodable, STPSourceProtocol
-
Representation of a user’s bank account details. You can assemble these with information that your user enters and then create Stripe tokens with them using an STPAPIClient.
See moreDeclaration
Swift
public class STPBankAccountParams : NSObject, STPFormEncodable
-
Representation of a user’s credit card details that have been tokenized with the Stripe API
See moreDeclaration
Swift
public class STPCard : NSObject, STPAPIResponseDecodable, STPSourceProtocol
-
Representation of a user’s credit card details. You can assemble these with information that your user enters and then create Stripe tokens with them using an STPAPIClient.
See moreDeclaration
Swift
public class STPCardParams : NSObject, STPFormEncodable, NSCopying
-
An object representing a line item in a Klarna source.
See moreDeclaration
Swift
public class STPKlarnaLineItem : NSObject
-
This class provides typed access to the contents of an STPSource
See moredetails
dictionary for card sources.Declaration
Swift
public class STPSourceCardDetails : NSObject, STPAPIResponseDecodable
-
Details of a Klarna source.
See moreDeclaration
Swift
public class STPSourceKlarnaDetails : NSObject, STPAPIResponseDecodable
-
This class provides typed access to the contents of an STPSource
See moredetails
dictionary for SEPA Debit sources.Declaration
Swift
public class STPSourceSEPADebitDetails : NSObject, STPAPIResponseDecodable
-
Details of a WeChat Pay Source.
See moreDeclaration
Swift
public class STPSourceWeChatPayDetails : NSObject, STPAPIResponseDecodable
-
A client for making connections to the Stripe API.
See moreDeclaration
Swift
@objc public class STPAPIClient : NSObject
-
This is a helper class for handling redirects associated with STPSource and STPPaymentIntents. Init and retain an instance with the Source or PaymentIntent you want to handle, then choose a redirect method. The context will fire the completion handler when the redirect completes. Due to the nature of iOS, very little concrete information can be gained during this process, as all actions take place in either the Safari app or the sandboxed SFSafariViewController class. The context attempts to detect when the user has completed the necessary redirect action by listening for both app foregrounds and url callbacks received in the app delegate. However, it is possible the when the redirect is “completed”, the user may have not actually completed the necessary actions to authorize the charge. You should not use either this class, nor
See moreSTPAPIClient
, as a way to determine when you should charge the Source or to determine if the redirect was successful. Use Stripe webhooks on your backend server to listen for Source state changes and to make the charge. @note You must retain this instance for the duration of the redirect flow. This class dismisses any presented view controller upon deallocation. See https://stripe.com/docs/sources/best-practicesDeclaration
Swift
@available(iOSApplicationExtension, unavailable) @available(macCatalystApplicationExtension, unavailable) public class STPRedirectContext: NSObject, SFSafariViewControllerDelegate, UIViewControllerTransitioningDelegate, STPSafariViewControllerDismissalDelegate
-
A class responsible for collecting bank account information
See moreDeclaration
Swift
public class STPBankAccountCollector : NSObject
-
This class contains static methods to validate card numbers, expiration dates, and CVCs. For a list of test card numbers to use with this code, see https://stripe.com/docs/testing
See moreDeclaration
Swift
@objc(STPCardValidator) public class STPCardValidator : NSObject
-
See moreSTPPaymentHandler
is a utility class that confirms PaymentIntents/SetupIntents and handles any authentication required, such as 3DS1/3DS2 for Strong Customer Authentication. It can present authentication UI on top of your app or redirect users out of your app (to e.g. their banking app).Declaration
Swift
public class STPPaymentHandler : NSObject
extension STPPaymentHandler: SFSafariViewControllerDelegate
-
A customization object to use to configure the UI of a button.
See moreDeclaration
Swift
public class STPThreeDSButtonCustomization : NSObject
-
See moreSTPThreeDSCustomizationSettings
provides customization options for 3DS2 authentication flows in your app.Declaration
Swift
public class STPThreeDSCustomizationSettings : NSObject
-
The Challenge view displays a footer with additional details that expand when tapped. This object configures the appearance of that view.
See moreDeclaration
Swift
public class STPThreeDSFooterCustomization : NSObject
-
A customization object to use to configure the UI of a text label.
See moreDeclaration
Swift
public class STPThreeDSLabelCustomization : NSObject
-
A customization object to use to configure a UINavigationBar.
See moreDeclaration
Swift
public class STPThreeDSNavigationBarCustomization : NSObject
-
A customization object that configures the appearance of radio buttons and checkboxes.
See moreDeclaration
Swift
public class STPThreeDSSelectionCustomization : NSObject
-
A customization object to use to configure the UI of a text field.
See moreDeclaration
Swift
public class STPThreeDSTextFieldCustomization : NSObject
-
The
See moreSTPThreeDSUICustomization
provides configuration for UI elements displayed during 3D Secure authentication. Note: It’s important to configure this object appropriately before calling anySTPPaymentHandler
APIs. The API makes a copy of the customization settings you provide; it ignores any subsequent changes you make to yourSTPThreeDSUICustomization
instance.Declaration
Swift
public class STPThreeDSUICustomization : NSObject
-
Libraries wrapping the Stripe SDK should use this object to provide information about the library, and set it in on
See moreSTPAPIClient
. This information is passed to Stripe so that we can contact you about future issues or critical updates.Declaration
Swift
@objc public class STPAppInfo : NSObject
-
Top-level class for Stripe error constants.
See moreDeclaration
Swift
@objc public class STPError : NSObject