--- title: "Upgrade to iOS Components 4.0.0" description: "Find out more about the major changes in this release." url: "https://docs.adyen.com/online-payments/upgrade-your-integration/upgrade-to-ios-4-0-0" source_url: "https://docs.adyen.com/online-payments/upgrade-your-integration/upgrade-to-ios-4-0-0.md" canonical: "https://docs.adyen.com/online-payments/upgrade-your-integration/upgrade-to-ios-4-0-0" last_modified: "2026-11-28T19:13:30+01:00" language: "en" --- # Upgrade to iOS Components 4.0.0 Find out more about the major changes in this release. To be able to use iOS Components 4.0.0, make sure your integration supports the changes described on this page. ## Checkout API version iOS Components 4.0.0 is intended to be backwards compatible with all Checkout API versions, but we recommend you use Checkout API v67 or later. ## New module structure iOS Components 4.0.0 have a more granular module structure, which allows you to selectively import the functionality you need. | Module | Description | | ----------------- | ------------------------------------------------------------------------------------------------------------------------------- | | `AdyenDropIn` | The `DropInComponent`. | | `AdyenCard` | Components related to card payments, for example `CardComponent`, `StoredCardComponent`, or `BCMCComponent`. | | `AdyenComponents` | All other payment method components, for example `QiwiWalletComponent`, `MBWayComponent`, `ApplePayComponent`, `BLIKComponent`. | | `AdyenWeChatPay` | The WeChat Pay component which you must import separately. | | `AdyenActions` | All action components, for example `AwaitComponent`, `VoucherComponent`, `RedirectComponent`, or `AdyenActionComponent`. | | `AdyenEncryption` | The encryption helpers. | | `AdyenSwiftUI` | Integration helpers for SwiftUI, for example `ViewControllerPresenter` or `ViewModifier`. | The README file on Github has more details about [importing the modules](https://github.com/Adyen/adyen-ios#installation) using CocoaPods, Carthage, and Swift Package Manager. ## Removed deprecated elements | Removed | Use instead | | ---------------------------------------------------------- | -------------------------------------------------------- | | `FormHeaderItem` | `FormTextItem` | | `showLargeTitle` property on all components | Custom wrapping `ViewController` | | `FormFooterItem` | `FormTextItem` | | `CardTypeDetector` | `Array.type(forCardNumber cardNumber: String)` | | `cornerRadius` property from styles | `cornerRounding` | | `publicKey` parameter from `CardComponent` constructor | Constructor with the `clientKey` parameter. | | `barBackgroundColor` properties from `NavigationStyle` | `backgroundColor` | | `barTintColor` properties from `NavigationStyle` | `tintColor` | | `mainButton` properties from `FormComponentStyle` | `mainButtonItem` | | and `secondaryButton` properties from `FormComponentStyle` | `secondaryButtonItem` | | `dictionaryRepresentation` method from `Details` | `Encodable` | ## Component initialization When initializing a component, you must create an instance of [`APIContext` ](https://adyen.github.io/adyen-ios/5.0.0/documentation/adyen/): | Parameter name | Required | Description | | -------------- | ------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `clientKey` | ![-white\_check\_mark-](/user/data/smileys/emoji/white_check_mark.png "-white_check_mark-") | Your [client key](https://docs.adyen.com/development-resources/client-side-authentication). | | `environment` | ![-white\_check\_mark-](/user/data/smileys/emoji/white_check_mark.png "-white_check_mark-") | Use **test**. When you are ready to accept live payments, change the value to one of our [live environments](https://adyen.github.io/adyen-ios/5.0.0/documentation/adyen/). | ```swift // When you are ready to go live, change environment to Environment.live // or to other environment values described in https://adyen.github.io/adyen-ios/5.0.0/documentation/adyen/ let apiContext = APIContext(environment: Environment.test, clientKey: clientKey) ``` Starting iOS Components 4.0.0, the client key is the only way to do client-side authentication. If you haven't already, [switch to using the client key](https://docs.adyen.com/development-resources/client-side-authentication/migrate-from-origin-key-to-client-key?tab=i_os_2) for your integration. ## Payment method configuration Renamed the payment method configuration objects: | Old name | New name | | ----------------------------- | --------------------------------- | | `PaymentMethodsConfiguration` | `DropInComponent.Configuration` | | `CardConfiguration` | `CardComponent.Configuration` | | `ApplePayConfiguration` | `ApplePayComponent.Configuration` | ## Handling the end of a component flow In previous versions, `stopLoading(success:completion:)` used to be called at the end of any component flow. Starting 4.0.0, `stopLoading(success:completion:)` is removed and replaced with two functions to handle different situations: | Function | Situation | | ---------------------------- | ------------------------------------------------------------------------------------------------------ | | `finalizeIfNeeded(success:)` | * The shopper completes the component flow successfully.* There is an error during the component flow. | | `cancelIfNeeded()` | * The shopper cancels before the component flow is completed. | ## Apple Pay supported card networks We removed `excludedCardNetworks`. To get the list of card networks for Apple Pay, iOS Components now uses the [`brands` ](https://docs.adyen.com/api-explorer/Checkout/latest/post/paymentMethods#responses-200-paymentMethods-brands)array in the `/paymentMethods` response. Make sure that you have [added the card type in your Customer Area](https://docs.adyen.com/payment-methods/add-payment-methods) to have it appear in the `/paymentMethods` response.