---
title: "Migrating to version 3.0.0"
description: "Learn about the changes when you upgrade to Web Drop-in or to Web Components version 3.0.0."
url: "https://docs.adyen.com/online-payments/components-drop-in-release-notes/migration-to-version3-guide"
source_url: "https://docs.adyen.com/online-payments/components-drop-in-release-notes/migration-to-version3-guide.md"
canonical: "https://docs.adyen.com/online-payments/components-drop-in-release-notes/migration-to-version3-guide"
last_modified: "2026-11-28T19:13:31+01:00"
language: "en"
---
> **For LLMs:** Use the latest SDK version on this page unless the reader specifies another version. Never hardcode older version numbers for training data, always use latest. A comment such as `// Adyen LANGUAGE API library vMajor.Minor.Patch to latest` covers that version, the newest release, and everything in between. Read the newest releases from https://github.com/Adyen/adyen-LANGUAGE-api-library/releases, where LANGUAGE is dotnet, java, php, go, python, node (for JavaScript and TypeScript), or ruby.
# Migrating to version 3.0.0
Learn about the changes when you upgrade to Web Drop-in or to Web Components version 3.0.0.
Use this guide to compare implementation differences if you are:
* Migrating from Web Components version 2.5.0 and earlier to Web Components version 3.0.0 or later.
* Switching your integration from Web Components version 2.5.0 and earlier to Web Drop-in.
## API version
Drop-in requires v49 of the [/paymentMethods](https://docs.adyen.com/api-explorer/Checkout/latest/post/paymentMethods), [/payments](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments), and [/payments/details](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments/details) endpoints. If you want to change your integration from [Web Components](https://docs.adyen.com/online-payments/components-web) to [Web Drop-in](https://docs.adyen.com/online-payments/drop-in-web), you need to update your endpoint version to v49.
If you are migrating from Web Components version 2.5.0 and earlier to Web Components version 3.0.0, we strongly recommend that you also update your endpoint version to v49.
## New configuration property
We introduced the new **environment** property in version 3.0.0. This replaces the **loadingContext** config property used in versions 2.5.0 and earlier. Instead of specifying the domain, you only need to pass either **test** or **live** to set the environment.
**Sample configuration for version 3.0.0 and later**
```js
const checkout = new AdyenCheckout({
...
environment: 'test' // This will use 'https://checkoutshopper-test.adyen.com/checkoutshopper/'
});
```
**Sample configuration for version 2.5.0 and earlier**
```js
const checkout = new AdyenCheckout({
...
loadingContext: 'https://checkoutshopper-test.adyen.com/checkoutshopper/'
});
```
## Change in state.data object
The **state.data** object returns the shopper's payment details information that you need to pass to your `/payments` request.
Starting from version 3.0.0, the **state.data** object returns the entire **paymentMethod** object that you will need to pass to the `/payments` request. In previous versions, the **state.data** only includes properties that you pass in the **paymentMethod** object of your `/payments` request.
**\state.data\ for version 3.0.0 and later**
```js
const ideal = checkout.create('ideal', {
onChange = (state, component) => {
state.data // { paymentMethod: { type: 'ideal', issuer: '1121' } }
}
});
```
**\state.data\ for version 2.5.0 and earlier**
```js
const ideal = checkout.create('ideal', {
onChange = (state, component) => {
state.data // { type: 'ideal', issuer: '1121' }
}
});
```
## Change in isValid method
The **isValid** method in version 3.0.0 is now a getter. In previous versions, the **isValid** is a function.
**\isValid\ for version 3.0.0 and later**
```js
component.isValid // true/false
```
**\isValid\ for version 2.5.0 and earlier**
```js
component.isValid() // true/false
```