Skip to content

27.0.0

Latest

Choose a tag to compare

@yuki-stripe yuki-stripe released this 01 Dec 17:52
· 16 commits to master since this release
27.0.0
e1508a3

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.endive instead of 2020-08-27. Your server can keep using its current API version. Parameters that you pass in additionalAPIParameters must be valid for 2026-09-30.endive.
  • [Changed] allResponseFields on API objects, such as STPPaymentIntent, now reflects API version 2026-09-30.endive. Compared to 2020-08-27, some fields are removed or renamed, and some values are different. For example, cancellation_reason is expired instead of automatic when an authorization expires. If you read values from allResponseFields, review the API changelog.

PaymentSheet

  • [Added] Added allowedPaymentMethodTypes and excludedPaymentMethodTypes to PaymentSheet.IntentConfiguration. If your server creates the PaymentIntent or SetupIntent with allowed_payment_method_types or excluded_payment_method_types, set the matching property to the same list.
  • [Changed] PaymentSheet.IntentConfiguration.Mode.payment now requires an explicit captureMethod. Pass the capture method of the PaymentIntent your server creates. If you didn't previously set captureMethod, pass .automatic.
  • [Deprecated] Deprecated External Payment Methods in favor of Custom Payment Methods. See the CPM integration guide.
  • [Changed] Added @MainActor isolation to PaymentSheet and PaymentSheet.FlowController. Initialize and access these objects from the main actor.
  • [Removed] Removed public access to PaymentSheetError.
  • [Deprecated] Deprecated PaymentSheet.Configuration.allowsPaymentMethodsRequiringShippingAddress and EmbeddedPaymentElement.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.address is .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.customer to 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 allowedPaymentMethodTypes and excludedPaymentMethodTypes to CustomerSheet.IntentConfiguration. If your server creates the SetupIntent with allowed_payment_method_types or excluded_payment_method_types, pass the same list.
  • [Changed] Added @MainActor isolation to CustomerSheet. 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.code now returns specific codes, such as payment_method_customer_decline, instead of payment_intent_authentication_failure. For failed Bancontact and iDEAL setups, STPSetupIntentLastSetupError.code returns the specific codes instead of setup_intent_authentication_failure. STPPaymentHandler now reports these failures with STPPaymentHandlerErrorCode.paymentErrorCode instead of .notAuthenticatedErrorCode, and PaymentSheet shows customers a different error message. Errors from confirming some TWINT and Zip payments also have the specific codes instead of payment_intent_authentication_failure. Expired Klarna payments return payment_intent_payment_attempt_expired instead of payment_intent_payment_attempt_failed.
  • [Changed] For failed BLIK payments, declineCode on STPPaymentIntentLastPaymentError and STPSetupIntentLastSetupError now returns specific values, such as code_invalid, instead of generic_decline.
  • [Changed] When you set STPAPIClient.stripeAccount and use a platform's publishable key, fingerprint on STPPaymentMethodUSBankAccount, STPPaymentMethodSEPADebit, STPPaymentMethodBacsDebit, and STPPaymentMethodAUBECSDebit, and in the acss_debit hash of STPPaymentMethod.allResponseFields, is now scoped to the platform instead of the connected account.
  • [Changed] Marked STPPaymentHandlerActionStatus as @frozen, allowing exhaustive switches over .succeeded, .canceled, and .failed.

CryptoOnramp (Alpha)

  • [Added] Added the optional linkCardBrandAcceptance parameter to CryptoOnrampCoordinator.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 Identity package 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 Identity package trait. See MIGRATING.md.

PaymentsUI

  • [Fixed] Fixed STPPaymentCardTextField.cornerRadius returning the previous value after it was set.

StripeIssuing

  • [Changed] STPIssuingCardEphemeralKeyProvider now receives 2026-09-30.endive as the apiVersion to use when creating an ephemeral key.