---
title: "Migrating from Secured Fields v1.1.4 to 1.3.0"
url: "https://docs.adyen.com/migrating-from-secured-fields-v114-to-130"
source_url: "https://docs.adyen.com/migrating-from-secured-fields-v114-to-130.md"
canonical: "https://docs.adyen.com/migrating-from-secured-fields-v114-to-130"
last_modified: "2019-04-26T12:57:00+02:00"
language: "en"
---
# Migrating from Secured Fields v1.1.4 to 1.3.0
Use these guidelines to update your integration with Adyen when you are migrating from Secured Fields 1.1.4 to 1.3.0 or later.
## Step 1: Update the Secured Fields version
Update the script version in the `
` element of your payments page. The latest version is 1.5.2.
```js
```
## Step 2: Update Secured Fields elements
Remove `data-hosted-id` in the `
` in the `` of your payments page. The `data-cse` attribute is now used to identify the holder for secured iframes.
```xml
```
```xml
```
## Step 3: Review and update Secured Fields configuration
Check the configuration object at the bottom of the `` and add properties if applicable.
```js
```
* `originKey`: Required. The Origin Key of your website. To find out how to generate one, see [How to get an origin key](https://docs.adyen.com/development-resources/how-to-get-an-origin-key).
* `cardGroupTypes`: Optional. Configure supported card types. If card types are not provided, the configuration defaults to \['`mc`','`visa`','`amex`'].
* `allowedDOMAccess`: Optional. Defaults to **true**. If `allowedDOMAccess` is set to **true**, Secured Fields adds encrypted values to hidden `` fields in the `
` that holds the `data-cse` elements. \
If you do not want Secured Fields to automatically add hidden input fields, set `allowedDOMAccess` to **false**. To get the encrypted card details when `allowedDOMAccess` is set to **false**, use the values from the `blob` property on the `onFieldValid` callback object. This callback is invoked as a specific field is validated and encrypted. See [Secured Field callbacks](https://docs.adyen.com/payment-methods/cards/secured-fields-standalone#callbacks) for more information.
* `showWarnings`: Optional. From Secured Fields version 1.3.1 and later, this configuration defaults to **false**. To continue receiving warnings for origin and data mismatches, set the value to **true**.
Next, if you are adding [placeholder values](https://docs.adyen.com/payment-methods/cards/secured-fields-standalone#styling) in your configuration, replace the field names with `encryptedCardNumber`, `encryptedExpiryDate`, `encryptedExpiryMonth`, `encryptedExpiryYear`, and `encryptedSecurityCode`.
Lastly, review your callback implementation. We introduced the `onBinValue` callback and changed object values in version 1.3.0.
### Callback changes in 1.3.0
For a complete description of the callbacks, see [Secured Field callbacks](https://docs.adyen.com/payment-methods/cards/secured-fields-standalone#callbacks) page.
#### onAllValid
```js
{
allValid: false,
type: "card"
}
```
#### onFieldValid
```js
{
blob: "adyenjs_0_1_22$IGaNbdJNru...",
encryptedFieldName: "encryptedExpiryMonth",
fieldType: "encryptedExpiryDate",
uid: "card-encrypted-month",
valid: true,
txVariant: "card",
markerNode: [HTML Node],
type: "month"
}
```
\*\* If you are upgrading from version 1.2.0, update `type:"card"` to `txVariant:"card"` and `originalFieldType:"month"` to `type:"month"`.
#### onFocus
```js
{
action: "focus",
focus: true,
fieldType: "encryptedCardNumber",
txVariant: "card",
markerNode: [HTML Node]
}
```
#### onBinValue
This callback is available from version 1.3.1.
```js
{
binValue: "411111",
txVariant: "card"
}
```