Repository navigation
27.0.0 2026-11-30
This major version introduces several breaking changes. Please see MIGRATING.md to help you migrate.
General
- [Changed] The SDK now uses Stripe API version
2026-09-30.endiveinstead of2020-08-27. Your server can keep using its current API version. Parameters that you pass inadditionalAPIParametersmust be valid for2026-09-30.endive. - [Changed]
allResponseFieldson API objects, such asSTPPaymentIntent, now reflects API version2026-09-30.endive. Compared to2020-08-27, some fields are removed or renamed, and some values are different. For example,cancellation_reasonisexpiredinstead ofautomaticwhen an authorization expires. If you read values fromallResponseFields, review the API changelog.
PaymentSheet
- [Added] Added
allowedPaymentMethodTypesandexcludedPaymentMethodTypestoPaymentSheet.IntentConfiguration. If your server creates the PaymentIntent or SetupIntent withallowed_payment_method_typesorexcluded_payment_method_types, set the matching property to the same list. - [Changed]
PaymentSheet.IntentConfiguration.Mode.paymentnow requires an explicitcaptureMethod. Pass the capture method of the PaymentIntent your server creates. If you didn't previously setcaptureMethod, pass.automatic. - [Deprecated] Deprecated External Payment Methods in favor of Custom Payment Methods. See the CPM integration guide.
- [Changed] Added
@MainActorisolation toPaymentSheetandPaymentSheet.FlowController. Initialize and access these objects from the main actor. - [Removed] Removed public access to
PaymentSheetError. - [Deprecated] Deprecated
PaymentSheet.Configuration.allowsPaymentMethodsRequiringShippingAddressandEmbeddedPaymentElement.Configuration.allowsPaymentMethodsRequiringShippingAddress. This configuration no longer has an effect. Payment methods that require a shipping address are always allowed. - [Changed] Klarna no longer displays a country dropdown with PaymentIntents when
billingDetailsCollectionConfiguration.addressis.never. - [Changed] In some rare cases where PaymentSheet, PaymentSheet.FlowController, and EmbeddedPaymentElement fail to load properly, they will now fully fail instead of initializing with a limited set of payment methods.
- [Added] Added Mobile Checkout Elements (private preview), a new integration powered by the Checkout Sessions API. See https://docs.stripe.com/payments/mobile/checkout-sessions
- [Added] Added support for Stripe balance (private preview) in PaymentSheet, PaymentSheet.FlowController, and EmbeddedPaymentElement, for payments and setting up future payments. Customers choose which of their financial accounts to pay from. Requires
PaymentSheet.Configuration.customerto use a CustomerSession. - [Fixed] Fixed an issue where closing the Pix instructions page canceled the payment while the customer was still completing it.
- [Fixed] Fixed an issue where EmbeddedPaymentElement didn't show the approval screen for BLIK, MB WAY and Bizum payments.
- [Fixed] Fixed an issue where adding a bank account in native Link or signing out of Link could fail when the configured API client used a different publishable key from
STPAPIClient.shared.
CustomerSheet
- [Added] Added
allowedPaymentMethodTypesandexcludedPaymentMethodTypestoCustomerSheet.IntentConfiguration. If your server creates the SetupIntent withallowed_payment_method_typesorexcluded_payment_method_types, pass the same list. - [Changed] Added
@MainActorisolation toCustomerSheet. Initialize and access from the main actor. - [Removed] Removed public access to
CustomerSheetError.
Payments
- [Changed] For failed Bancontact, EPS, iDEAL, Klarna, and Przelewy24 payments,
STPPaymentIntentLastPaymentError.codenow returns specific codes, such aspayment_method_customer_decline, instead ofpayment_intent_authentication_failure. For failed Bancontact and iDEAL setups,STPSetupIntentLastSetupError.codereturns the specific codes instead ofsetup_intent_authentication_failure.STPPaymentHandlernow reports these failures withSTPPaymentHandlerErrorCode.paymentErrorCodeinstead of.notAuthenticatedErrorCode, and PaymentSheet shows customers a different error message. Errors from confirming some TWINT and Zip payments also have the specific codes instead ofpayment_intent_authentication_failure. Expired Klarna payments returnpayment_intent_payment_attempt_expiredinstead ofpayment_intent_payment_attempt_failed. - [Changed] For failed BLIK payments,
declineCodeonSTPPaymentIntentLastPaymentErrorandSTPSetupIntentLastSetupErrornow returns specific values, such ascode_invalid, instead ofgeneric_decline. - [Changed] When you set
STPAPIClient.stripeAccountand use a platform's publishable key,fingerprintonSTPPaymentMethodUSBankAccount,STPPaymentMethodSEPADebit,STPPaymentMethodBacsDebit, andSTPPaymentMethodAUBECSDebit, and in theacss_debithash ofSTPPaymentMethod.allResponseFields, is now scoped to the platform instead of the connected account. - [Changed] Marked
STPPaymentHandlerActionStatusas@frozen, allowing exhaustive switches over.succeeded,.canceled, and.failed.
CryptoOnramp (Alpha)
- [Added] Added the optional
linkCardBrandAcceptanceparameter toCryptoOnrampCoordinator.create(...)to allow or block card brands in the Link UI. Defaults to accepting all supported brands. - [Changed] If you install with Swift Package Manager, enable the
Identitypackage trait. CryptoOnramp depends on StripeIdentity, which requires it. See MIGRATING.md. - [Fixed] Fixed a build failure with Xcode 27.0 when linking StripeCryptoOnramp.
Financial Connections
- [Changed] Updated Link-branded Financial Connections flows, including Instant Debits, to the new Link design system.
Identity
- [Changed] If you install with Swift Package Manager, StripeIdentity now requires the
Identitypackage trait. See MIGRATING.md.
PaymentsUI
- [Fixed] Fixed
STPPaymentCardTextField.cornerRadiusreturning the previous value after it was set.
StripeIssuing
- [Changed]
STPIssuingCardEphemeralKeyProvidernow receives2026-09-30.endiveas theapiVersionto use when creating an ephemeral key.