{"title":"Standalone Secured Fields","category":"default","creationDate":1796385374,"content":"<div class=\"sc-notice warning\"><div>\n<p>We have replaced Secured Fields with the new <a href=\"\/payment-methods\/cards\/custom-card-integration\">Custom Card Web Component<\/a>. We still support Secured Fields, but we only release new functionality for the Custom Card Component. You must implement the Custom Card Component to be compliant with <a href=\"\/online-payments\/co-badged-cards-compliance\">co-badged card regulations<\/a>.<\/p>\n<p>If you currently use Secured Fields, we strongly recommend that you implement our <a href=\"\/payment-methods\/cards\/custom-card-integration\">Custom Card Web Component<\/a> instead.<\/p>\n<\/div><\/div>\n<p>Before you can make a payment with our <a href=\"\/online-payments\/build-your-integration\/advanced-flow\/?platform=Web&amp;integration=API%20only&amp;version=71\">API integration<\/a>, you need to collect any required payment details from your shopper. Here we describe how to do this by building your own payment form.<\/p>\n<p>Building your own form gives you full control over the look and feel of your checkout. If you'd rather not build your own payment form, you can also collect the shopper's payment details using our pre-built JavaScript <a href=\"\/online-payments\/components-web\/\">Components<\/a> or with the <a href=\"\/online-payments\/drop-in-web\">Drop-in<\/a>.\u00a0These are available for many\u00a0<a href=\"\/online-payments\/components-web\/#supported-payment-methods\">popular payment methods<\/a>.<\/p>\n<div class=\"sc-notice note\"><div>\n<p>This guide assumes that you have already completed <a href=\"\/online-payments\/build-your-integration\/advanced-flow\/?platform=Web&amp;integration=API%20only&amp;version=71\">Step 1 of our API integration guide<\/a>, and have presented a list of payment methods to the shopper.<\/p>\n<\/div><\/div>\n<p>To collect payment details from the shopper, your payment form can be either:<\/p>\n<ul>\n<li>\n<p><strong>Hard-coded<\/strong>: After\u00a0making a  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/paymentMethods\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/paymentMethods<\/a>\u00a0call to <a href=\"#step-1-determine-required-shopper-details\">determine the payment details you need to collect<\/a>, you build a static form that collects them from the shopper.<\/p>\n<p>A hard-coded form is quicker to implement, but the payment details you need to collect from a shopper can change. You should regularly poll the\u00a0 <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/paymentMethods\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/paymentMethods<\/a> endpoint to check for any updates to required payment details. We recommend this approach if you are only working with a small number of payment methods or countries\/regions.<\/p>\n<\/li>\n<li>\n<p><strong>Dynamically generated<\/strong>: For each transaction, you make a  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/paymentMethods\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/paymentMethods<\/a>\u00a0call to <a href=\"#step-1-determine-required-shopper-details\">determine the payment details you need to collect<\/a>. Then use the response to generate a form that collects them from the shopper.<\/p>\n<p>This takes more time to implement, but ensures that the required payment details you collect from the shopper are up-to-date.<\/p>\n<\/li>\n<\/ul>\n<p>After you decide which form you will build, follow the steps below to:<\/p>\n<ol>\n<li><a href=\"#step-1-determine-required-shopper-details\">Determine which shopper details you need to collect<\/a>\u00a0in your form. These are different for each payment method.<\/li>\n<li><a href=\"#step-2-collect-shopper-details-with-secured-fields\">Integrate Secured Fields<\/a>. Secured Fields is our JavaScript library that you can use to collect and encrypt sensitive credit card details.<\/li>\n<\/ol>\n<h2 id=\"step-1-determine-required-shopper-details\">Step 1: Determine required shopper details<\/h2>\n<p>To determine what payment details you need to collect from the shopper:<\/p>\n<ol>\n<li>\n<p>Make\u00a0 <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/paymentMethods\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/paymentMethods<\/a>\u00a0call, providing:<\/p>\n<ul>\n<li><code>countryCode<\/code>: The shopper's country\/region.<\/li>\n<li><code>amount<\/code>: The\u00a0<code>currency<\/code>\u00a0and\u00a0<code>value<\/code>\u00a0of the payment.\u00a0<\/li>\n<\/ul>\n<p>A list of available\u00a0<code>paymentMethods<\/code>\u00a0will be returned in the response. Most of these will have a\u00a0<code>details<\/code>\u00a0array.\u00a0<\/p>\n<pre><code class=\"language-json\">{\n  \"paymentMethods\":[\n    {\n      \"details\":[{\n          \"key\":\"encryptedCardNumber\",\n          \"type\":\"cardToken\"\n        },{\n          \"key\":\"encryptedExpiryMonth\",\n          \"type\":\"cardToken\"\n        },{\n          \"key\":\"encryptedExpiryYear\",\n          \"type\":\"cardToken\"\n        },{\n          \"key\":\"encryptedSecurityCode\",\n          \"type\":\"cardToken\"\n        }\n      ],\n      \"name\":\"Credit Card\",\n      \"type\":\"scheme\"\n    },{\n      \"details\":[{\n          \"key\":\"sepa.ownerName\",\n          \"type\":\"text\"\n        },{\n          \"key\":\"sepa.ibanNumber\",\n          \"type\":\"text\"\n        }\n      ],\n      \"name\":\"SEPA Direct Debit\",\n      \"type\":\"sepadirectdebit\"\n    },\n    ...\n  ]\n}<\/code><\/pre>\n<\/li>\n<li>\n<p>Use the\u00a0<code>details<\/code>\u00a0array of each payment method to determine what you need to collect from the shopper:<\/p>\n<ul>\n<li><code>key<\/code>: Shopper detail you need to collect using your payments form.<\/li>\n<li>\n<p><code>type<\/code>: Input type for collecting the payment detail from the shopper:<\/p>\n<table>\n<thead>\n<tr>\n<th>Type<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><span translate=\"no\"><strong>cardToken<\/strong><\/span><\/td>\n<td>Value that represents encrypted card data. Generate these values using our\u00a0<a href=\"#step-2-collect-shopper-details-with-secured-fields\">Secured Fields<\/a>\u00a0JavaScript library.<\/td>\n<\/tr>\n<tr>\n<td><span translate=\"no\"><strong>emailAddress<\/strong><\/span><\/td>\n<td>Email address.<\/td>\n<\/tr>\n<tr>\n<td><span translate=\"no\"><strong>radio<\/strong><\/span><\/td>\n<td>Radio buttons displaying the options specified within the\u00a0<code>items<\/code>\u00a0array.<\/td>\n<\/tr>\n<tr>\n<td><span translate=\"no\"><strong>select<\/strong><\/span><\/td>\n<td>A list displaying the options specified within the\u00a0<code>items<\/code>\u00a0array. Present each\u00a0<code>name<\/code>\u00a0in this array to the shopper.<\/td>\n<\/tr>\n<tr>\n<td><span translate=\"no\"><strong>tel<\/strong><\/span><\/td>\n<td>Telephone number.<\/td>\n<\/tr>\n<tr>\n<td><span translate=\"no\"><strong>text<\/strong><\/span><\/td>\n<td>Generic string.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/li>\n<\/ul>\n<div class=\"sc-notice info\"><div>\n<p>If a payment method does not have a <code>details<\/code>\u00a0array, you do not need to collect any shopper details in your form.<\/p>\n<\/div><\/div>\n<p>In the example below, for\u00a0SEPA Direct Debit, you'd use\u00a0<span translate=\"no\"><strong>text<\/strong><\/span>\u00a0fields to collect:<\/p>\n<ul>\n<li>\n<p><code>sepa.ownerName<\/code>: Name on the shopper's bank account.<\/p>\n<\/li>\n<li>\n<p><code>sepa.ibanNumber<\/code>: IBAN number of this account.<\/p>\n<div data-component-wrapper=\"code-sample\">\n<code-sample :title=\"'\/paymentMethods response'\" :id=\"''\" :code-data='[{\"language\":\"json\",\"tabTitle\":\"\",\"content\":\"{\\n  \\\"paymentMethods\\\":[\\n    ...\\n      {\\n      \\\"details\\\":[{\\n          \\\"key\\\":\\\"sepa.ownerName\\\",\\n          \\\"type\\\":\\\"text\\\"\\n        },{\\n          \\\"key\\\":\\\"sepa.ibanNumber\\\",\\n          \\\"type\\\":\\\"text\\\"\\n        }\\n      ],\\n      \\\"name\\\":\\\"SEPA Direct Debit\\\",\\n      \\\"type\\\":\\\"sepadirectdebit\\\"\\n    },\\n    ...\\n  ]\\n}\"}]' :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h2 id=\"step-2-collect-shopper-details-with-secured-fields\">Step 2: Collect shopper details with Secured Fields<\/h2>\n<p>Secured Fields is our JavaScript library that you can use to securely collect and encrypt your\u00a0shopper's credit card details.<\/p>\n<p>When the shopper enters their card details on your website, Secured Fields collects the sensitive data, and creates an encrypted version that you can safely transmit when you make the payment.<\/p>\n<div class=\"sc-notice note\"><div>\n<p>If you are fully PCI compliant you can alternatively collect and submit raw card data. See <a href=\"\/payment-methods\/cards\/raw-card-data\">Collecting raw card data<\/a> for more information.<\/p>\n<\/div><\/div>\n<p>To integrate Secured Fields in your payment form:<\/p>\n<ol>\n<li>\n<p>Include the following script in the\u00a0<code>&lt;head&gt;<\/code>\u00a0of your payments page:<\/p>\n<pre><code class=\"language-js\">&lt;script type=\"text\/javascript\" src=\"https:\/\/checkoutshopper-test.adyen.com\/checkoutshopper\/assets\/js\/sdk\/checkoutSecuredFields.1.5.0.min.js\"&gt;&lt;\/script&gt;<\/code><\/pre>\n<p>This will embed the Secured Fields library.<\/p>\n<\/li>\n<li>\n<p>Insert a\u00a0<code>&lt;div&gt;<\/code>\u00a0in the\u00a0<code>&lt;body&gt;<\/code>\u00a0of your payments page, with the following <code>data-cse<\/code> elements:<\/p>\n<ul>\n<li>\n<p><code>encryptedCardNumber<\/code>: Card number.<\/p>\n<\/li>\n<li>\n<p>For card expiration:<\/p>\n<ul>\n<li>\n<p>Collect as separate fields:<\/p>\n<ul>\n<li>\n<p><code>encryptedExpiryMonth<\/code>: Card expiry month.<\/p>\n<\/li>\n<li>\n<p><code>encryptedExpiryYear<\/code>: Card expiry year.<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>Collect as a single field:<\/p>\n<ul>\n<li><code>encryptedExpiryDate<\/code>: Card expiry for both month and year.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><code>encryptedSecurityCode<\/code>: Card\u00a0<a href=\"\/get-started-with-adyen\/adyen-glossary\/#card-security-code-cvc-cvv-cid\">security code<\/a>.<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"language-xml\">&lt;div class=\"cards-div\"&gt;\n\n    &lt;div class=\"js-chckt-pm__pm-holder\"&gt;\n       &lt;input type=\"hidden\" name=\"txvariant\" value=\"card\" \/&gt;\n       &lt;label&gt;\n           &lt;span class=\"input-field\" data-cse=\"encryptedCardNumber\" \/&gt;\n       &lt;\/label&gt;\n       &lt;label&gt;\n           &lt;span class=\"input-field\" data-cse=\"encryptedExpiryMonth\" \/&gt;\n       &lt;\/label&gt;\n       &lt;label&gt;\n           &lt;span class=\"input-field\" data-cse=\"encryptedExpiryYear\" \/&gt;\n       &lt;\/label&gt;\n       &lt;label&gt;\n           &lt;span class=\"input-field\" data-cse=\"encryptedSecurityCode\" \/&gt;\n       &lt;\/label&gt;\n    &lt;\/div&gt;\n&lt;\/div&gt;<\/code><\/pre>\n<p>These will render as iframes, where the shopper can securely enter their card details.\u00a0<\/p>\n<\/li>\n<li>\n<p>Add the following\u00a0code to the\u00a0bottom of the \u00a0<code>&lt;body&gt;<\/code>, specifying:<\/p>\n<ul>\n<li><code>clientKey<\/code>: a public key linked to your API credential, used for <a href=\"\/development-resources\/client-side-authentication\">client-side authentication<\/a>.<\/li>\n<\/ul>\n<pre><code class=\"language-js\">&lt;script type=\"text\/javascript\"&gt;\n   var csfSetupObj = {\n      rootNode: '.cards-div',\n      configObject : {\n        clientKey : \"YOUR_CLIENT_KEY\"\n        }\n   };\n   var securedFields = csf(csfSetupObj);\n  &lt;\/script&gt;<\/code><\/pre>\n<p>You can also include additional configuration properties. For more information, see <a href=\"#configuring-secured-fields\">Configuring Secured Fields<\/a>.<\/p>\n<\/li>\n<li>\n<p>When the shopper enters their card details, Secured Fields will perform validation on the card details. When the shopper submits the payment, their card details are replaced by encrypted values. These are added to hidden\u00a0<code>&lt;input&gt;<\/code>\u00a0fields in the\u00a0<code>&lt;div&gt;<\/code>\u00a0that holds the\u00a0<code>data-cse<\/code>\u00a0elements.\u00a0<\/p>\n<pre><code class=\"language-xml\">&lt;div id=\"pmHolder\" class=\"js-chckt-pm__pm-holder\"&gt;\n    &lt;input type=\"hidden\" name=\"txvariant\" value=\"card\"&gt;\n    ...\n    &lt;input type=\"hidden\" name=\"encryptedExpiryMonth\" id=\"card-encrypted-month\" value=\"adyenjs_0_1_18$MT6ppy0FAMVMLH...\"&gt;\n    ...\n&lt;\/div&gt;<\/code><\/pre>\n<\/li>\n<li>\n<p>Loop through and collect the encrypted card details from the corresponding\u00a0<code>data-cse<\/code>\u00a0values. You'll use these to <a href=\"\/online-payments\/api-only\/#step-3-make-a-payment\">make the payment<\/a>.<\/p>\n<\/li>\n<\/ol>\n<h2>Configuring Secured Fields<\/h2>\n<p>Aside from the basic configuration to allow Secure Fields to collect and encrypt shopper information, you can also add styles and use callbacks.<\/p>\n<ul>\n<li><a href=\"#callbacks\">Callbacks<\/a>: Implement additional logic such as displaying error messages when <code>onError<\/code> is invoked.<\/li>\n<li><a href=\"#styling\">Styling<\/a>: Style your input fields.<\/li>\n<li><a href=\"#configuration\">Configuration<\/a>: Modify default configuration for card brand recognition and for allowing DOM access.<\/li>\n<\/ul>\n<p>The following is a sample Secured Fields code with styles and additional configuration properties. If you want to know more about styles and config options, check out the links in the list above.<\/p>\n<pre><code class=\"language-js\">\n    \/\/ Define style object\n    var styleObject = {\n      base: {\n        color: 'black',\n        fontSize: '16px',\n        fontSmoothing: 'antialiased',\n        fontFamily: 'Helvetica'\n      },\n      error: {\n        color: 'red'\n      },\n      placeholder: {\n        color: '#d8d8d8'\n      },\n      validated: {\n        color: 'green'\n      }\n    }\n    \/\/ Load the Secured Fields\n\n    var securedFields = csf({\n      configObject : {\n        clientKey : \"[RETRIEVE FROM CUSTOMER AREA]\",\n        cardGroupTypes: ['maestro','visa','amex'] \/\/ OPTIONAL\n      },\n      allowedDOMAccess: false,\n      rootNode: '.cards-div',\n      paymentMethods : {\n        card : {\n          sfStyles : styleObject,\n          placeholders: {\n            encryptedCardNumber : '4111 1111 1111 1111',\n            encryptedExpiryDate : '08\/18',\n            encryptedSecurityCode : '737'\n          }\n        }\n      }\n    });<\/code><\/pre>\n<h2 id=\"callbacks\">Secured Fields callbacks<\/h2>\n<p>Implement callbacks to handle events when using Secured Fields. Use these to customize your shopper's experience when specific events occur.<\/p>\n<h3 id=\"onallvalid\">onAllValid<\/h3>\n<p>This callback is invoked when\u00a0all secured fields have been filled, validated and encrypted.<\/p>\n<pre><code class=\"language-js\">securedFields.onAllValid ( function(allValidObject){\n});<\/code><\/pre>\n<p>When this callback is invoked in version 1.2.0 and later, the\u00a0<code>allValidObject<\/code>\u00a0includes a parameter\u00a0<code>allValid<\/code>\u00a0set to <span translate=\"no\"><strong>true<\/strong><\/span> and a <code>type<\/code> parameter that returns the payment method type, for example <strong>card<\/strong>. In lower versions, <code>txVariant<\/code> is used instead of <code>type<\/code>.\u00a0<\/p>\n<p><strong>Version 1.2.0 and later:<\/strong><\/p>\n<pre><code class=\"language-js\">allValidObject = {allValid : true, type : 'card'}<\/code><\/pre>\n<p><strong>Version 1.1.4:<\/strong><\/p>\n<pre><code class=\"language-js\">allValidObject = {allValid : true, txVariant : 'card'}<\/code><\/pre>\n<p>A field can become invalid after originally validating, for example if a value is changed. If so,\u00a0the callback is invoked with <code>allValid<\/code> set to <span translate=\"no\"><strong>false<\/strong><\/span>.<\/p>\n<h3 id=\"onbinvalue\">onBinValue<\/h3>\n<div class=\"sc-notice note\"><div>\n<p>This callback is supported from version 1.3.1 and later. To migrate to version 1.3.1, see <a href=\"\/migrating-from-secured-fields-v114-to-130\">Migrating to 1.3.0 and later<\/a>.<\/p>\n<\/div><\/div>\n<p>This callback is invoked when a shopper types\u00a0the <a href=\"\/get-started-with-adyen\/adyen-glossary\/#bank-identification-number-bin\">BIN<\/a> (first 6 digits)\u00a0in the credit card number field.<\/p>\n<pre><code class=\"language-js\">securedFields.onBinValue ( function(valueObject){\n});<\/code><\/pre>\n<p>Example <code>valueObject<\/code>:<\/p>\n<pre><code class=\"language-json\">{\n  \"binValue\": \"411111\",\n  \"txVariant\": \"card\"\n}<\/code><\/pre>\n<h3 id=\"onbrand\">onBrand<\/h3>\n<p>This callback is invoked when\u00a0the card brand has been identified.\u00a0\u00a0To use this callback for all your supported card brands, configure card types in the\u00a0<code>cardGroupTypes<\/code>\u00a0property.<\/p>\n<pre><code class=\"language-js\">securedFields.onBrand ( function(brandObject){\n});<\/code><\/pre>\n<p>Example\u00a0<code>brandObject<\/code>:<\/p>\n<pre><code class=\"language-json\">{\n  \"brandImage\": \"visa@2x.png\",\n  \"brand\": \"visa\",\n  \"brandText\": \"CVV\",\n  \"markerNode\": div#pmHolder.js-chckt-pm__pm-holder,\/\/ Ref to HTML node for this payment method\n}<\/code><\/pre>\n<h3 id=\"onconfigsuccess\">onConfigSuccess<\/h3>\n<p>This callback is invoked when all the loaded iframes have run their setup code and are ready to be used.<\/p>\n<p>If\u00a0<code>onConfigSuccess<\/code> doesn't follow\u00a0<code>onLoad<\/code> \u00a0promptly then something has gone wrong.<\/p>\n<pre><code class=\"language-js\">securedFields.onConfigSuccess ( function(configSuccessObject){\n});<\/code><\/pre>\n<p>When this callback is invoked, the\u00a0<code>configSuccessObject<\/code>\u00a0includes a parameter\u00a0<code>iframesConfigured<\/code> set to <span translate=\"no\"><strong>true<\/strong><\/span>.<\/p>\n<h3 id=\"onerror\">onError<\/h3>\n<p>This callback is invoked when a shopper triggers an error. For example, an invalid card number, invalid expiry date, or incomplete field. <strong><br \/>\n<\/strong><\/p>\n<pre><code class=\"language-js\">securedFields.onError ( function(errorObject){\n});<\/code><\/pre>\n<p>Example\u00a0<code>errorObject<\/code>:\u00a0<\/p>\n<pre><code class=\"language-json\">{\n  \"markerNode\": div#pmHolder.js-chckt-pm__pm-holder,\/\/ Ref to HTML node for this payment method,\n  \"fieldType\": \"encryptedExpiryDate\",\n  \"error\": \"validateExpiryDate: card too old\"\n}<\/code><\/pre>\n<p>If multiple errors occur, you will receive separate <code>onError<\/code> callbacks with a different value for <code>error<\/code>.<\/p>\n<p>If no error occurred, the callback is invoked with an empty string as the value of <code>error<\/code>:<\/p>\n<pre><code class=\"language-json\">{\n  \"markerNode\": div#pmHolder.js-chckt-pm__pm-holder,\/\/ Ref to HTML node for this payment method,\n  \"fieldType\": \"encryptedExpiryDate\",\n  \"error\": \"\"\n}<\/code><\/pre>\n<h3 id=\"onfieldvalid\">onFieldValid<\/h3>\n<p>This callback is invoked as a specific field is validated and encrypted.<\/p>\n<pre><code class=\"language-js\">securedFields.onFieldValid (function(fieldObject){\n});<\/code><\/pre>\n<p>The <code>endDigits<\/code> property is included for <code>type:encryptedCardNumber<\/code> from version 1.5.2 and later:<\/p>\n<pre><code class=\"language-json\">{\n   \"blob\":adyenjs_0_1_22$IGaNbdJNru...,\n   \"encryptedFieldName\":\"encryptedCardNumber\",\n   \"fieldType\":\"encryptedCardNumber\",\n   \"uid\":\"card-encrypted-encryptedCardNumber\",\n   \"valid\":true,\n   \"txVariant\":\"card\",\n   \"endDigits\":1111,\n   \"markerNode\":div#pmHolder.js-chckt-pm__pm-holder,\n   \"type\":\"encryptedCardNumber\"\n}<\/code><\/pre>\n<p>Examples of passing an encrypted expiry month in a\u00a0<code>fieldObject<\/code>:<\/p>\n<p><strong>Version 1.3.0 and later:<\/strong><\/p>\n<pre><code class=\"language-json\">{\n   \"blob\":adyenjs_0_1_22$IGaNbdJNru...,\n   \"encryptedFieldName\":\"encryptedExpiryMonth\",\n   \"fieldType\":\"encryptedExpiryDate\",\n   \"uid\":card-encrypted-month,\n   \"valid\":true,\n   \"txVariant\":\"card\",\n   \"markerNode\":div#pmHolder.js-chckt-pm__pm-holder,\n   \"type\":\"month\"\n}<\/code><\/pre>\n<p><strong>Versions 1.2.0 and 1.2.1:<\/strong><\/p>\n<pre><code class=\"language-json\">{\n   \"blob\":adyenjs_0_1_22$IGaNbdJNru...,\n   \"encryptedFieldName\":\"encryptedExpiryMonth\",\n   \"fieldType\":\"encryptedExpiryDate\",\n   \"uid\":card-encrypted-month,\n   \"valid\":true,\n   \"type\":\"card\",\n   \"markerNode\":div#pmHolder.js-chckt-pm__pm-holder,\n   \"originalFieldType\":\"month\"\n}<\/code><\/pre>\n<p><strong>Version 1.1.4:<\/strong><\/p>\n<pre><code class=\"language-json\">{\n  \"singleField\": true,\n  \"fieldType\": \"hostedExpiryDateField\",\n  \"status\": \"valid\",\n  \"type\": \"card\",\n  \"markerNode\": :div#pmHolder.js-chckt-pm__pm-holder,\n  \"originalFieldType\": \"month\"\n}<\/code><\/pre>\n<p>A field can become invalid after originally validating, for example if a shopper changes the input to an invalid value. If so, the <code>valid<\/code> parameter of the <code>fieldObject<\/code> is set to <span translate=\"no\"><strong>false<\/strong><\/span> in version 1.2.0 and later. In lower versions, the <code>status<\/code> parameter is set to <span translate=\"no\"><strong>invalid<\/strong><\/span>.<\/p>\n<p>Example\u00a0<code>fieldObject<\/code>\u00a0when a field becomes invalid:<\/p>\n<p><strong>Version 1.3.0 and later:<\/strong><\/p>\n<pre><code class=\"language-json\">{\n   \"blob\":adyenjs_0_1_22$IGaNbdJNru...,\n   \"encryptedFieldName\":\"encryptedExpiryMonth\",\n   \"fieldType\":\"encryptedExpiryDate\",\n   \"uid\":card-encrypted-month,\n   \"valid\":false,\n   \"txVariant\":\"card\",\n   \"markerNode\":div#pmHolder.js-chckt-pm__pm-holder,\n   \"type\":\"month\"\n}<\/code><\/pre>\n<p><strong>Versions 1.2.0 and 1.2.1:<\/strong><\/p>\n<pre><code class=\"language-json\">{\n   \"blob\":adyenjs_0_1_22$IGaNbdJNru...,\n   \"encryptedFieldName\":\"encryptedExpiryMonth\",\n   \"fieldType\":\"encryptedExpiryDate\",\n   \"uid\":card-encrypted-month,\n   \"valid\":false,\n   \"type\":\"card\",\n   \"markerNode\":div#pmHolder.js-chckt-pm__pm-holder,\n   \"originalFieldType\":\"month\"\n}<\/code><\/pre>\n<p><strong>Version 1.1.4:<\/strong><\/p>\n<pre><code class=\"language-json\">{\n  \"singleField\": true,\n  \"fieldType\": \"hostedExpiryDateField\",\n  \"status\": \"invalid\",\n  \"type\": \"card\",\n  \"markerNode\": :div#pmHolder.js-chckt-pm__pm-holder,\n  \"originalFieldType\": \"month\"\n}<\/code><\/pre>\n<p>The\u00a0 <code>uid<\/code>\u00a0 parameter\u00a0in version 1.2.0 and later is a unique identifier created from combining the\u00a0 <code>txVariant<\/code> \u00a0with\u00a0the string <span translate=\"no\"><strong>\"encrypted\"<\/strong><\/span> and\u00a0 <code>type<\/code>. So, for example, <code>card-encrypted-month<\/code>, where <code>card<\/code> is the <code>txVariant<\/code>, and <code>month<\/code> is the <code>type<\/code>.<\/p>\n<p>It is used as the\u00a0 <code>id<\/code> \u00a0attribute for the hidden input that is added to the DOM and allows the field to be shown or hidden if invalid.<\/p>\n<h3 id=\"onfocus\">onFocus<\/h3>\n<p>This callback is invoked when\u00a0the iframe is focused (focus event) or loses focus (blur event).<\/p>\n<pre><code class=\"language-js\">securedFields.onFocus ( function(focusObject){\n});<\/code><\/pre>\n<p>Example\u00a0<code>focusObject<\/code>:<\/p>\n<p><strong>Version 1.2.0 and later:<\/strong><\/p>\n<pre><code class=\"language-json\">{\n  \"action\": \"focus\",\n  \"focus\": true,\n  \"fieldType\": \"encryptedExpiryDate\",\n  \"markerNode\": div#pmHolder.js-chckt-pm__pm-holder,\/\/ Ref to HTML node for this payment method,\n  \"txVariant\": \"card\"\n}<\/code><\/pre>\n<p><strong>Version 1.1.4:<\/strong><\/p>\n<pre><code class=\"language-json\">{\n  \"action\": \"focus\",\n  \"focus\": true,\n  \"fieldType\": \"hostedExpiryDateField\",\n  \"cseKey\": \"encryptedExpiryDate\",\n  \"markerNode\": div#pmHolder.js-chckt-pm__pm-holder,\/\/ Ref to HTML node for this payment method,\n  \"txVariant\": \"card\"\n}<\/code><\/pre>\n<p>When the field loses focus the property\u00a0<code>focus<\/code>\u00a0will have the value\u00a0 <span translate=\"no\"><strong>false<\/strong><\/span>.<\/p>\n<h3 id=\"onload\">onLoad<\/h3>\n<p>This callback is invoked when all the iframes that hold secured fields have been created and have loaded their resources.<\/p>\n<pre><code class=\"language-js\">securedFields.onLoad = function(loadObject){\n};<\/code><\/pre>\n<p>When this callback is invoked, the <code>loadObject<\/code> includes a parameter\u00a0<code>iframesLoaded<\/code> set to <span translate=\"no\"><strong>true<\/strong><\/span>.<\/p>\n<h2 id=\"styling\">Styling Secured Fields<\/h2>\n<p>All card payment method input fields on the Secured Fields form are represented as\u00a0iframe elements, which securely capture payment data from your shoppers. Use JavaScript to style the fields:<\/p>\n<ol>\n<li>\n<p>Create an object and set the following CSS values:\u00a0<\/p>\n<p>You can provide styling for the following:<\/p>\n<ul>\n<li><code>base<\/code>: Base styling applied to the iframe. All styling extends from this style.<\/li>\n<li><code>error<\/code>: Styling applied when a field fails validation.<\/li>\n<li><code>placeholder<\/code>: Styling applied to the field's placeholder values.<\/li>\n<li><code>validated<\/code>: Styling applied once a field passes validation.<\/li>\n<\/ul>\n<p>Here is an example style object:<\/p>\n<pre><code class=\"language-js\">\/\/ Define style object\nvar styleObject = {\n  base: {\n    color: 'black',\n    fontSize: '16px',\n    fontSmoothing: 'antialiased',\n    fontFamily: 'Helvetica'\n  },\n  error: {\n    color: 'red'\n  },\n  placeholder: {\n    color: '#d8d8d8'\n  },\n  validated: {\n    color: 'green'\n  }\n};<\/code><\/pre>\n<\/li>\n<li>\n<p>Style the elements with the following properties. These properties map to CSS properties and accept allowed CSS values:<\/p>\n<table><thead><tr class=\"header\"><th>JavaScript<\/th><th>CSS<\/th><\/tr><\/thead><tbody><tr><td><p><code>background<\/code><\/p><\/td><td><p>background<\/p><\/td><\/tr><tr><td><p><code>color<\/code><\/p><\/td><td><p>color<\/p><\/td><\/tr><tr><td><code>display<\/code><\/td><td>display<\/td><\/tr><tr><td><p><code>font<\/code><\/p><\/td><td><p>font<\/p><\/td><\/tr><tr><td><p><code>fontFamily<\/code><\/p><\/td><td><p>font-family<\/p><\/td><\/tr><tr><td><p><code>fontSize<\/code><\/p><\/td><td><p>font-size<\/p><\/td><\/tr><tr><td><p><code>fontSizeAdjust<\/code><\/p><\/td><td><p>font-size-adjust<\/p><\/td><\/tr><tr><td><p><code>fontSmoothing<\/code><\/p><\/td><td><p>font-smoothing<\/p><\/td><\/tr><tr><td><p><code>fontStretch<\/code><\/p><\/td><td><p>font-stretch<\/p><\/td><\/tr><tr><td><p><code>fontStyle<\/code><\/p><\/td><td><p>font-style<\/p><\/td><\/tr><tr><td><p><code>fontVariant<\/code><\/p><\/td><td><p>font-variant<\/p><\/td><\/tr><tr><td><p><code>fontVariantAlternates<\/code><\/p><\/td><td><p>font-variant-alternates<\/p><\/td><\/tr><tr><td><p><code>fontVariantCaps<\/code><\/p><\/td><td><p>font-variant-caps<\/p><\/td><\/tr><tr><td><p><code>fontVariantEastAsian<\/code><\/p><\/td><td><p>font-variant-east-asian<\/p><\/td><\/tr><tr><td><p><code>fontVariantLigatures<\/code><\/p><\/td><td><p>font-variant-ligatures<\/p><\/td><\/tr><tr><td><p><code>fontVariantNumeric<\/code><\/p><\/td><td><p>font-variant-numeric<\/p><\/td><\/tr><tr><td><p><code>fontWeight<\/code><\/p><\/td><td><p>font-weight<\/p><\/td><\/tr><tr><td><p><code>letterSpacing<\/code><\/p><\/td><td><p>letter-spacing<\/p><\/td><\/tr><tr><td><p><code>lineHeight<\/code><\/p><\/td><td><p>line-height<\/p><\/td><\/tr><tr><td><p><code>mozOsxFontSmoothing<\/code><\/p><\/td><td><p>moz-osx-font-smoothing<\/p><\/td><\/tr><tr><td><p><code>mozTransition<\/code><\/p><\/td><td><p>moz-transition<\/p><\/td><\/tr><tr><td><p><code>outline<\/code><\/p><\/td><td><p>outline<\/p><\/td><\/tr><tr><td><p><code>opacity<\/code><\/p><\/td><td><p>opacity<\/p><\/td><\/tr><tr><td><p><code>padding<\/code><\/p><\/td><td>padding<\/td><\/tr><tr><td><p><code>textAlign<\/code><\/p><\/td><td>text-align<\/td><\/tr><tr><td><p><code>textShadow<\/code><\/p><\/td><td><p>text-shadow<\/p><\/td><\/tr><tr><td><p><code>transition<\/code><\/p><\/td><td><p>transition<\/p><\/td><\/tr><tr><td><p><code>webkitFontSmoothing<\/code><\/p><\/td><td><p>webkit-font-smoothing<\/p><\/td><\/tr><tr><td><p><code>webkitTransition<\/code><\/p><\/td><td><p>webkit-transition<\/p><\/td><\/tr><\/tbody><\/table>\n<\/li>\n<\/ol>\n<h2 id=\"configuration\">Configuration object<\/h2>\n<p>Add optional properties in the configuration at the bottom of the\u00a0<code>&lt;body&gt;<\/code>\u00a0of your payments page.<\/p>\n<pre><code class=\"language-js\">  &lt;script type=\"text\/javascript\"&gt;\n   var csfSetupObj = {\n      rootNode: '.cards-div',\n      configObject : {\n        clientKey : \"YOUR_CLIENT_KEY\",\n        cardGroupTypes: ['maestro','visa','amex'] \/\/ OPTIONAL\n        },\n      allowedDOMAccess : false, \/\/ OPTIONAL  - Defaults to true\n   };\n   var securedFields = csf(csfSetupObj);\n  &lt;\/script&gt;<\/code><\/pre>\n<ul>\n<li><code>cardGroupTypes<\/code>: Optional. Configure supported card types to facilitate brand recognition used in the\u00a0<code>onBrand<\/code>\u00a0callback. Defaults to\u00a0<code>['mc','visa','amex']<\/code>.\u00a0See list of\u00a0<a href=\"#supported-card-types\">available card types<\/a>. If a shopper enters a card type not specified in the\u00a0<code>cardGroupTypes<\/code>\u00a0configuration, the <code>onBrand<\/code> callback will not be invoked.<\/li>\n<li><code>allowedDOMAccess<\/code>: Optional. Enables or disables adding encrypted values to\u00a0hidden\u00a0<code>&lt;input&gt;<\/code>\u00a0fields in the\u00a0<code>&lt;div&gt;<\/code>\u00a0that holds the\u00a0<code>data-cse<\/code>\u00a0elements.\u00a0Defaults to\u00a0<span translate=\"no\"><strong>true<\/strong><\/span> for a standalone implementation, <span translate=\"no\"><strong>false<\/strong><\/span> for Secured Fields Component. If you do not want Secured Fields to\u00a0automatically add hidden input fields,\u00a0set\u00a0<code>allowedDOMAccess<\/code>\u00a0to\u00a0<span translate=\"no\"><strong>false<\/strong><\/span>.\u00a0To get the encrypted card details when\u00a0<code>allowedDOMAccess<\/code>\u00a0is set to\u00a0<span translate=\"no\"><strong>false<\/strong><\/span>, use the values from the\u00a0<code>blob<\/code>\u00a0property on the\u00a0<code>onFieldValid<\/code>\u00a0callback object. This callback is invoked as a specific field is validated and encrypted.<br \/>\nFor more information, see\u00a0<a href=\"#callbacks\">Secured Fields callbacks<\/a>.<\/li>\n<\/ul>\n<h3 id=\"supported-card-types\">Supported card types<\/h3>\n<p>Use the\u00a0values in this list when specifying card types in the\u00a0<code>brands<\/code>\u00a0array.\u00a0If card types are not provided, the configuration defaults to\u00a0<code>['mc','visa','amex']<\/code>.\u00a0<\/p>\n<table>\n<thead>\n<tr>\n<th>Card Type<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>amex<\/td>\n<td>Amex<\/td>\n<\/tr>\n<tr>\n<td>argencard<\/td>\n<td>Argencard<\/td>\n<\/tr>\n<tr>\n<td>bcmc<\/td>\n<td>Bancontact\/Mister Cash<\/td>\n<\/tr>\n<tr>\n<td>bijcard<\/td>\n<td>de Bijenkorf Card<\/td>\n<\/tr>\n<tr>\n<td>cabal<\/td>\n<td>Cabal<\/td>\n<\/tr>\n<tr>\n<td>cartebancaire<\/td>\n<td>Carte Bancaires<\/td>\n<\/tr>\n<tr>\n<td>codensa<\/td>\n<td>Codensa<\/td>\n<\/tr>\n<tr>\n<td>cup<\/td>\n<td>China Union Pay<\/td>\n<\/tr>\n<tr>\n<td>dankort<\/td>\n<td>Dankort<\/td>\n<\/tr>\n<tr>\n<td>diners<\/td>\n<td>Diners Club<\/td>\n<\/tr>\n<tr>\n<td>discover<\/td>\n<td>Discover<\/td>\n<\/tr>\n<tr>\n<td>elo<\/td>\n<td>ELO<\/td>\n<\/tr>\n<tr>\n<td>forbrugsforeningen<\/td>\n<td>Forbrugsforeningen<\/td>\n<\/tr>\n<tr>\n<td>hiper<\/td>\n<td>HiperCard<\/td>\n<\/tr>\n<tr>\n<td>hipercard<\/td>\n<td>HiperCard<\/td>\n<\/tr>\n<tr>\n<td>jcb<\/td>\n<td>JCB<\/td>\n<\/tr>\n<tr>\n<td>karenmillen<\/td>\n<td>Karen Millen GiftCard<\/td>\n<\/tr>\n<tr>\n<td>laser<\/td>\n<td>Laser<\/td>\n<\/tr>\n<tr>\n<td>maestro<\/td>\n<td>Maestro<\/td>\n<\/tr>\n<tr>\n<td>maestrouk<\/td>\n<td>Maestro UK<\/td>\n<\/tr>\n<tr>\n<td>mc<\/td>\n<td>Mastercard<\/td>\n<\/tr>\n<tr>\n<td>mcalphabankbonus<\/td>\n<td>Alpha Bank Mastercard Bonus<\/td>\n<\/tr>\n<tr>\n<td>mir<\/td>\n<td>MIR<\/td>\n<\/tr>\n<tr>\n<td>naranja<\/td>\n<td>Naranja<\/td>\n<\/tr>\n<tr>\n<td>oasis<\/td>\n<td>Oasis GiftCard<\/td>\n<\/tr>\n<tr>\n<td>shopping<\/td>\n<td>Tarjeta Shopping<\/td>\n<\/tr>\n<tr>\n<td>solo<\/td>\n<td>Solo<\/td>\n<\/tr>\n<tr>\n<td>troy<\/td>\n<td>Troy<\/td>\n<\/tr>\n<tr>\n<td>uatp<\/td>\n<td>UATP<\/td>\n<\/tr>\n<tr>\n<td>visa<\/td>\n<td>Visa<\/td>\n<\/tr>\n<tr>\n<td>visaalphabankbonus<\/td>\n<td>Alpha Bank Visa Bonus<\/td>\n<\/tr>\n<tr>\n<td>visadankort<\/td>\n<td>Visa Dankort<\/td>\n<\/tr>\n<tr>\n<td>warehouse<\/td>\n<td>Warehouse GiftCard<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>Release notes<\/h2>\n<p>The <a href=\"\/payment-methods\/cards\/custom-card-integration\">Custom Card Web Component<\/a> replaces all older versions of Secured Fields (versions 1.x.x).<\/p>\n<h3 id=\"secured-fields-1-5-2-march-18-2019\">Secured Fields 1.5.2 (March 18, 2019)<\/h3>\n<p>This release includes:<\/p>\n<ul>\n<li>Fixes for issues with device fingerprinting: for when there are multiple cards configured in Secured Fields and for the errors generated when initializing Secured Fields the second time.<\/li>\n<li>Fix for the missing 4-digit placeholder when using American Express saved card details.\u00a0<\/li>\n<li>Support for propagating the last 4 digits of a card number in the <code>endDigits<\/code> property of\u00a0<a href=\"#onfieldvalid\">\n  <code>onFieldValid<\/code>\n<\/a>\u00a0callback object.<\/li>\n<\/ul>\n<h3 id=\"secured-fields-1-5-1-january-28-2019\">Secured Fields 1.5.1 (January 28, 2019)<\/h3>\n<p>This release includes:<\/p>\n<ul>\n<li>Fix for\u00a0an issue in iOS Safari where the numerical keyboard won't retract.<\/li>\n<li>Fix that allows setting a blank placeholder.<\/li>\n<\/ul>\n<h3 id=\"secured-fields-1-5-0-january-7-2019\">Secured Fields 1.5.0 (January 7, 2019)<\/h3>\n<p>This release includes the fix that allows shoppers\u00a0with Kaspersky Internet Security and SafeMoney enabled in their browsers to proceed with entering their card details in the input fields.<\/p>\n<p>We added an iframe that will trigger Kaspersky Internet Security to prompt shoppers to authorize loading iframes from Adyen.\u00a0If the shopper allows iframes to load or the shopper does not have Kaspersky installed, the normal iframe will be loaded.<\/p>\n<h3 id=\"secured-fields-1-3-4-december-3-2018\">Secured Fields 1.3.4 (December 3, 2018)<\/h3>\n<p>This release includes:<\/p>\n<ul>\n<li>Support for device fingerprinting within Secured Fields resulting to improved performance compared to the CSE implementation.<\/li>\n<li>Improved tabbing navigation\u00a0on Firefox.<\/li>\n<li>New\u00a0<code>aria-placeholder<\/code>\u00a0 and\u00a0<code>aria-label<\/code>\u00a0attributes.<\/li>\n<li>Fix to now allow deleting spaces between card numbers.<\/li>\n<li>Additional supported <a href=\"#supported-card-types\">card types<\/a> for <code>onBrand<\/code> callback:\u00a0<code>naranja<\/code>, <code>cabal<\/code>, <code>shopping<\/code>, <code>argencard<\/code>, <code>troy<\/code>, <code>forbrugsforeningen<\/code><\/li>\n<\/ul>\n<h3 id=\"secured-fields-1-3-3-october-15-2018\">Secured Fields 1.3.3 (October 15, 2018)<\/h3>\n<p>This release includes:<\/p>\n<ul>\n<li>A bug fix to prevent the error message briefly shown on iOS Safari when typing a 13-digit Visa number.<\/li>\n<li>Support for\u00a0<a href=\"#styling\">styling validated fields<\/a>.<\/li>\n<\/ul>\n<h3 id=\"secured-fields-1-3-2-october-8-2018\">Secured Fields 1.3.2 (October 8, 2018)<\/h3>\n<p>This release includes new error handling when a shopper types a wrong card number into a single branded card field. For example, SF will generate an error after typing 7 digits Visa number into a BCMC field.<\/p>\n<h3 id=\"secured-fields-1-3-1-october-1-2018\">Secured Fields 1.3.1 (October 1, 2018)<\/h3>\n<p>This release includes the new\u00a0<a href=\"#callbacks\">Secured Fields callbacks<\/a> callback and\u00a0<code>showWarnings<\/code>\u00a0property in the configuration object.<\/p>\n<h3 id=\"secured-fields-1-3-0\">Secured Fields 1.3.0<\/h3>\n<p>This release includes:<strong>\u00a0<\/strong><\/p>\n<p><strong>New<\/strong><\/p>\n<ul>\n<li>Support for dynamically setting CVC placeholder length based on card brand.<\/li>\n<\/ul>\n<p><strong>Fixes<\/strong><\/p>\n<ul>\n<li>A bug fix for iOS Safari blur event that was not firing and was causing card validation errors for BCMC.<\/li>\n<\/ul>\n<p><strong>Improvements<\/strong><\/p>\n<ul>\n<li>\n<p>Changes in property names for\u00a0<code>onFieldValid<\/code>\u00a0callback object.<\/p>\n<\/li>\n<li>\n<p>Improved formatting of card numbers for single branded cards.<\/p>\n<\/li>\n<\/ul>\n<h3 id=\"secured-fields-1-2-1\">Secured Fields 1.2.1<\/h3>\n<p>This release includes the fix for issues on blur and focus events on iOS Safari causing unexpected behavior in input fields.<\/p>\n<h3 id=\"secured-fields-1-2-0\">Secured Fields 1.2.0<\/h3>\n<p>This release includes:\u00a0<\/p>\n<p><strong>New<\/strong><\/p>\n<ul>\n<li>\n<p>Support for <code>allowedDOMAccess<\/code>\u00a0property\u00a0in the configuration object.<\/p>\n<\/li>\n<li>\n<p>Support for 19-digit Visa numbers.\u00a0<\/p>\n<\/li>\n<li>\n<p>Replaced <code>data-hosted-id<\/code>\u00a0with\u00a0<code>data-cse<\/code>\u00a0attributes.<\/p>\n<\/li>\n<\/ul>\n<p><strong>Improvements<\/strong><\/p>\n<ul>\n<li>Support for placeholder styling on IE and Firefox.\u00a0<\/li>\n<li>Downgraded postMessage event origin mismatch messages from error to warning.\u00a0<\/li>\n<li>New properties\u00a0on\u00a0<code>onFieldValid<\/code> and <code>onFocus<\/code> callback objects.<\/li>\n<\/ul>\n<h3 id=\"secured-fields-1-1-4\">Secured Fields 1.1.4<\/h3>\n<p>This release includes improved expiry date validation and sending the resulting error message to the <code>onError<\/code> callback.<\/p>","url":"https:\/\/docs.adyen.com\/payment-methods\/cards\/secured-fields-standalone","articleFields":{"description":"Learn how to collect a shopper's payment details on your own payment form.","robots":"noindex,nofollow"},"algolia":{"url":"https:\/\/docs.adyen.com\/payment-methods\/cards\/secured-fields-standalone","title":"Standalone Secured Fields","content":"\nWe have replaced Secured Fields with the new Custom Card Web Component. We still support Secured Fields, but we only release new functionality for the Custom Card Component. You must implement the Custom Card Component to be compliant with co-badged card regulations.\nIf you currently use Secured Fields, we strongly recommend that you implement our Custom Card Web Component instead.\n\nBefore you can make a payment with our API integration, you need to collect any required payment details from your shopper. Here we describe how to do this by building your own payment form.\nBuilding your own form gives you full control over the look and feel of your checkout. If you'd rather not build your own payment form, you can also collect the shopper's payment details using our pre-built JavaScript Components or with the Drop-in.\u00a0These are available for many\u00a0popular payment methods.\n\nThis guide assumes that you have already completed Step 1 of our API integration guide, and have presented a list of payment methods to the shopper.\n\nTo collect payment details from the shopper, your payment form can be either:\n\n\nHard-coded: After\u00a0making a  \/paymentMethods\u00a0call to determine the payment details you need to collect, you build a static form that collects them from the shopper.\nA hard-coded form is quicker to implement, but the payment details you need to collect from a shopper can change. You should regularly poll the\u00a0 \/paymentMethods endpoint to check for any updates to required payment details. We recommend this approach if you are only working with a small number of payment methods or countries\/regions.\n\n\nDynamically generated: For each transaction, you make a  \/paymentMethods\u00a0call to determine the payment details you need to collect. Then use the response to generate a form that collects them from the shopper.\nThis takes more time to implement, but ensures that the required payment details you collect from the shopper are up-to-date.\n\n\nAfter you decide which form you will build, follow the steps below to:\n\nDetermine which shopper details you need to collect\u00a0in your form. These are different for each payment method.\nIntegrate Secured Fields. Secured Fields is our JavaScript library that you can use to collect and encrypt sensitive credit card details.\n\nStep 1: Determine required shopper details\nTo determine what payment details you need to collect from the shopper:\n\n\nMake\u00a0 \/paymentMethods\u00a0call, providing:\n\ncountryCode: The shopper's country\/region.\namount: The\u00a0currency\u00a0and\u00a0value\u00a0of the payment.\u00a0\n\nA list of available\u00a0paymentMethods\u00a0will be returned in the response. Most of these will have a\u00a0details\u00a0array.\u00a0\n{\n  \"paymentMethods\":[\n    {\n      \"details\":[{\n          \"key\":\"encryptedCardNumber\",\n          \"type\":\"cardToken\"\n        },{\n          \"key\":\"encryptedExpiryMonth\",\n          \"type\":\"cardToken\"\n        },{\n          \"key\":\"encryptedExpiryYear\",\n          \"type\":\"cardToken\"\n        },{\n          \"key\":\"encryptedSecurityCode\",\n          \"type\":\"cardToken\"\n        }\n      ],\n      \"name\":\"Credit Card\",\n      \"type\":\"scheme\"\n    },{\n      \"details\":[{\n          \"key\":\"sepa.ownerName\",\n          \"type\":\"text\"\n        },{\n          \"key\":\"sepa.ibanNumber\",\n          \"type\":\"text\"\n        }\n      ],\n      \"name\":\"SEPA Direct Debit\",\n      \"type\":\"sepadirectdebit\"\n    },\n    ...\n  ]\n}\n\n\nUse the\u00a0details\u00a0array of each payment method to determine what you need to collect from the shopper:\n\nkey: Shopper detail you need to collect using your payments form.\n\ntype: Input type for collecting the payment detail from the shopper:\n\n\n\nType\nDescription\n\n\n\n\ncardToken\nValue that represents encrypted card data. Generate these values using our\u00a0Secured Fields\u00a0JavaScript library.\n\n\nemailAddress\nEmail address.\n\n\nradio\nRadio buttons displaying the options specified within the\u00a0items\u00a0array.\n\n\nselect\nA list displaying the options specified within the\u00a0items\u00a0array. Present each\u00a0name\u00a0in this array to the shopper.\n\n\ntel\nTelephone number.\n\n\ntext\nGeneric string.\n\n\n\n\n\n\nIf a payment method does not have a details\u00a0array, you do not need to collect any shopper details in your form.\n\nIn the example below, for\u00a0SEPA Direct Debit, you'd use\u00a0text\u00a0fields to collect:\n\n\nsepa.ownerName: Name on the shopper's bank account.\n\n\nsepa.ibanNumber: IBAN number of this account.\n\n\n\n\n\n\n\nStep 2: Collect shopper details with Secured Fields\nSecured Fields is our JavaScript library that you can use to securely collect and encrypt your\u00a0shopper's credit card details.\nWhen the shopper enters their card details on your website, Secured Fields collects the sensitive data, and creates an encrypted version that you can safely transmit when you make the payment.\n\nIf you are fully PCI compliant you can alternatively collect and submit raw card data. See Collecting raw card data for more information.\n\nTo integrate Secured Fields in your payment form:\n\n\nInclude the following script in the\u00a0&lt;head&gt;\u00a0of your payments page:\n&lt;script type=\"text\/javascript\" src=\"https:\/\/checkoutshopper-test.adyen.com\/checkoutshopper\/assets\/js\/sdk\/checkoutSecuredFields.1.5.0.min.js\"&gt;&lt;\/script&gt;\nThis will embed the Secured Fields library.\n\n\nInsert a\u00a0&lt;div&gt;\u00a0in the\u00a0&lt;body&gt;\u00a0of your payments page, with the following data-cse elements:\n\n\nencryptedCardNumber: Card number.\n\n\nFor card expiration:\n\n\nCollect as separate fields:\n\n\nencryptedExpiryMonth: Card expiry month.\n\n\nencryptedExpiryYear: Card expiry year.\n\n\n\n\nCollect as a single field:\n\nencryptedExpiryDate: Card expiry for both month and year.\n\n\n\n\n\nencryptedSecurityCode: Card\u00a0security code.\n\n\n&lt;div class=\"cards-div\"&gt;\n\n    &lt;div class=\"js-chckt-pm__pm-holder\"&gt;\n       &lt;input type=\"hidden\" name=\"txvariant\" value=\"card\" \/&gt;\n       &lt;label&gt;\n           &lt;span class=\"input-field\" data-cse=\"encryptedCardNumber\" \/&gt;\n       &lt;\/label&gt;\n       &lt;label&gt;\n           &lt;span class=\"input-field\" data-cse=\"encryptedExpiryMonth\" \/&gt;\n       &lt;\/label&gt;\n       &lt;label&gt;\n           &lt;span class=\"input-field\" data-cse=\"encryptedExpiryYear\" \/&gt;\n       &lt;\/label&gt;\n       &lt;label&gt;\n           &lt;span class=\"input-field\" data-cse=\"encryptedSecurityCode\" \/&gt;\n       &lt;\/label&gt;\n    &lt;\/div&gt;\n&lt;\/div&gt;\nThese will render as iframes, where the shopper can securely enter their card details.\u00a0\n\n\nAdd the following\u00a0code to the\u00a0bottom of the \u00a0&lt;body&gt;, specifying:\n\nclientKey: a public key linked to your API credential, used for client-side authentication.\n\n&lt;script type=\"text\/javascript\"&gt;\n   var csfSetupObj = {\n      rootNode: '.cards-div',\n      configObject : {\n        clientKey : \"YOUR_CLIENT_KEY\"\n        }\n   };\n   var securedFields = csf(csfSetupObj);\n  &lt;\/script&gt;\nYou can also include additional configuration properties. For more information, see Configuring Secured Fields.\n\n\nWhen the shopper enters their card details, Secured Fields will perform validation on the card details. When the shopper submits the payment, their card details are replaced by encrypted values. These are added to hidden\u00a0&lt;input&gt;\u00a0fields in the\u00a0&lt;div&gt;\u00a0that holds the\u00a0data-cse\u00a0elements.\u00a0\n&lt;div id=\"pmHolder\" class=\"js-chckt-pm__pm-holder\"&gt;\n    &lt;input type=\"hidden\" name=\"txvariant\" value=\"card\"&gt;\n    ...\n    &lt;input type=\"hidden\" name=\"encryptedExpiryMonth\" id=\"card-encrypted-month\" value=\"adyenjs_0_1_18$MT6ppy0FAMVMLH...\"&gt;\n    ...\n&lt;\/div&gt;\n\n\nLoop through and collect the encrypted card details from the corresponding\u00a0data-cse\u00a0values. You'll use these to make the payment.\n\n\nConfiguring Secured Fields\nAside from the basic configuration to allow Secure Fields to collect and encrypt shopper information, you can also add styles and use callbacks.\n\nCallbacks: Implement additional logic such as displaying error messages when onError is invoked.\nStyling: Style your input fields.\nConfiguration: Modify default configuration for card brand recognition and for allowing DOM access.\n\nThe following is a sample Secured Fields code with styles and additional configuration properties. If you want to know more about styles and config options, check out the links in the list above.\n\n    \/\/ Define style object\n    var styleObject = {\n      base: {\n        color: 'black',\n        fontSize: '16px',\n        fontSmoothing: 'antialiased',\n        fontFamily: 'Helvetica'\n      },\n      error: {\n        color: 'red'\n      },\n      placeholder: {\n        color: '#d8d8d8'\n      },\n      validated: {\n        color: 'green'\n      }\n    }\n    \/\/ Load the Secured Fields\n\n    var securedFields = csf({\n      configObject : {\n        clientKey : \"[RETRIEVE FROM CUSTOMER AREA]\",\n        cardGroupTypes: ['maestro','visa','amex'] \/\/ OPTIONAL\n      },\n      allowedDOMAccess: false,\n      rootNode: '.cards-div',\n      paymentMethods : {\n        card : {\n          sfStyles : styleObject,\n          placeholders: {\n            encryptedCardNumber : '4111 1111 1111 1111',\n            encryptedExpiryDate : '08\/18',\n            encryptedSecurityCode : '737'\n          }\n        }\n      }\n    });\nSecured Fields callbacks\nImplement callbacks to handle events when using Secured Fields. Use these to customize your shopper's experience when specific events occur.\nonAllValid\nThis callback is invoked when\u00a0all secured fields have been filled, validated and encrypted.\nsecuredFields.onAllValid ( function(allValidObject){\n});\nWhen this callback is invoked in version 1.2.0 and later, the\u00a0allValidObject\u00a0includes a parameter\u00a0allValid\u00a0set to true and a type parameter that returns the payment method type, for example card. In lower versions, txVariant is used instead of type.\u00a0\nVersion 1.2.0 and later:\nallValidObject = {allValid : true, type : 'card'}\nVersion 1.1.4:\nallValidObject = {allValid : true, txVariant : 'card'}\nA field can become invalid after originally validating, for example if a value is changed. If so,\u00a0the callback is invoked with allValid set to false.\nonBinValue\n\nThis callback is supported from version 1.3.1 and later. To migrate to version 1.3.1, see Migrating to 1.3.0 and later.\n\nThis callback is invoked when a shopper types\u00a0the BIN (first 6 digits)\u00a0in the credit card number field.\nsecuredFields.onBinValue ( function(valueObject){\n});\nExample valueObject:\n{\n  \"binValue\": \"411111\",\n  \"txVariant\": \"card\"\n}\nonBrand\nThis callback is invoked when\u00a0the card brand has been identified.\u00a0\u00a0To use this callback for all your supported card brands, configure card types in the\u00a0cardGroupTypes\u00a0property.\nsecuredFields.onBrand ( function(brandObject){\n});\nExample\u00a0brandObject:\n{\n  \"brandImage\": \"visa@2x.png\",\n  \"brand\": \"visa\",\n  \"brandText\": \"CVV\",\n  \"markerNode\": div#pmHolder.js-chckt-pm__pm-holder,\/\/ Ref to HTML node for this payment method\n}\nonConfigSuccess\nThis callback is invoked when all the loaded iframes have run their setup code and are ready to be used.\nIf\u00a0onConfigSuccess doesn't follow\u00a0onLoad \u00a0promptly then something has gone wrong.\nsecuredFields.onConfigSuccess ( function(configSuccessObject){\n});\nWhen this callback is invoked, the\u00a0configSuccessObject\u00a0includes a parameter\u00a0iframesConfigured set to true.\nonError\nThis callback is invoked when a shopper triggers an error. For example, an invalid card number, invalid expiry date, or incomplete field. \n\nsecuredFields.onError ( function(errorObject){\n});\nExample\u00a0errorObject:\u00a0\n{\n  \"markerNode\": div#pmHolder.js-chckt-pm__pm-holder,\/\/ Ref to HTML node for this payment method,\n  \"fieldType\": \"encryptedExpiryDate\",\n  \"error\": \"validateExpiryDate: card too old\"\n}\nIf multiple errors occur, you will receive separate onError callbacks with a different value for error.\nIf no error occurred, the callback is invoked with an empty string as the value of error:\n{\n  \"markerNode\": div#pmHolder.js-chckt-pm__pm-holder,\/\/ Ref to HTML node for this payment method,\n  \"fieldType\": \"encryptedExpiryDate\",\n  \"error\": \"\"\n}\nonFieldValid\nThis callback is invoked as a specific field is validated and encrypted.\nsecuredFields.onFieldValid (function(fieldObject){\n});\nThe endDigits property is included for type:encryptedCardNumber from version 1.5.2 and later:\n{\n   \"blob\":adyenjs_0_1_22$IGaNbdJNru...,\n   \"encryptedFieldName\":\"encryptedCardNumber\",\n   \"fieldType\":\"encryptedCardNumber\",\n   \"uid\":\"card-encrypted-encryptedCardNumber\",\n   \"valid\":true,\n   \"txVariant\":\"card\",\n   \"endDigits\":1111,\n   \"markerNode\":div#pmHolder.js-chckt-pm__pm-holder,\n   \"type\":\"encryptedCardNumber\"\n}\nExamples of passing an encrypted expiry month in a\u00a0fieldObject:\nVersion 1.3.0 and later:\n{\n   \"blob\":adyenjs_0_1_22$IGaNbdJNru...,\n   \"encryptedFieldName\":\"encryptedExpiryMonth\",\n   \"fieldType\":\"encryptedExpiryDate\",\n   \"uid\":card-encrypted-month,\n   \"valid\":true,\n   \"txVariant\":\"card\",\n   \"markerNode\":div#pmHolder.js-chckt-pm__pm-holder,\n   \"type\":\"month\"\n}\nVersions 1.2.0 and 1.2.1:\n{\n   \"blob\":adyenjs_0_1_22$IGaNbdJNru...,\n   \"encryptedFieldName\":\"encryptedExpiryMonth\",\n   \"fieldType\":\"encryptedExpiryDate\",\n   \"uid\":card-encrypted-month,\n   \"valid\":true,\n   \"type\":\"card\",\n   \"markerNode\":div#pmHolder.js-chckt-pm__pm-holder,\n   \"originalFieldType\":\"month\"\n}\nVersion 1.1.4:\n{\n  \"singleField\": true,\n  \"fieldType\": \"hostedExpiryDateField\",\n  \"status\": \"valid\",\n  \"type\": \"card\",\n  \"markerNode\": :div#pmHolder.js-chckt-pm__pm-holder,\n  \"originalFieldType\": \"month\"\n}\nA field can become invalid after originally validating, for example if a shopper changes the input to an invalid value. If so, the valid parameter of the fieldObject is set to false in version 1.2.0 and later. In lower versions, the status parameter is set to invalid.\nExample\u00a0fieldObject\u00a0when a field becomes invalid:\nVersion 1.3.0 and later:\n{\n   \"blob\":adyenjs_0_1_22$IGaNbdJNru...,\n   \"encryptedFieldName\":\"encryptedExpiryMonth\",\n   \"fieldType\":\"encryptedExpiryDate\",\n   \"uid\":card-encrypted-month,\n   \"valid\":false,\n   \"txVariant\":\"card\",\n   \"markerNode\":div#pmHolder.js-chckt-pm__pm-holder,\n   \"type\":\"month\"\n}\nVersions 1.2.0 and 1.2.1:\n{\n   \"blob\":adyenjs_0_1_22$IGaNbdJNru...,\n   \"encryptedFieldName\":\"encryptedExpiryMonth\",\n   \"fieldType\":\"encryptedExpiryDate\",\n   \"uid\":card-encrypted-month,\n   \"valid\":false,\n   \"type\":\"card\",\n   \"markerNode\":div#pmHolder.js-chckt-pm__pm-holder,\n   \"originalFieldType\":\"month\"\n}\nVersion 1.1.4:\n{\n  \"singleField\": true,\n  \"fieldType\": \"hostedExpiryDateField\",\n  \"status\": \"invalid\",\n  \"type\": \"card\",\n  \"markerNode\": :div#pmHolder.js-chckt-pm__pm-holder,\n  \"originalFieldType\": \"month\"\n}\nThe\u00a0 uid\u00a0 parameter\u00a0in version 1.2.0 and later is a unique identifier created from combining the\u00a0 txVariant \u00a0with\u00a0the string \"encrypted\" and\u00a0 type. So, for example, card-encrypted-month, where card is the txVariant, and month is the type.\nIt is used as the\u00a0 id \u00a0attribute for the hidden input that is added to the DOM and allows the field to be shown or hidden if invalid.\nonFocus\nThis callback is invoked when\u00a0the iframe is focused (focus event) or loses focus (blur event).\nsecuredFields.onFocus ( function(focusObject){\n});\nExample\u00a0focusObject:\nVersion 1.2.0 and later:\n{\n  \"action\": \"focus\",\n  \"focus\": true,\n  \"fieldType\": \"encryptedExpiryDate\",\n  \"markerNode\": div#pmHolder.js-chckt-pm__pm-holder,\/\/ Ref to HTML node for this payment method,\n  \"txVariant\": \"card\"\n}\nVersion 1.1.4:\n{\n  \"action\": \"focus\",\n  \"focus\": true,\n  \"fieldType\": \"hostedExpiryDateField\",\n  \"cseKey\": \"encryptedExpiryDate\",\n  \"markerNode\": div#pmHolder.js-chckt-pm__pm-holder,\/\/ Ref to HTML node for this payment method,\n  \"txVariant\": \"card\"\n}\nWhen the field loses focus the property\u00a0focus\u00a0will have the value\u00a0 false.\nonLoad\nThis callback is invoked when all the iframes that hold secured fields have been created and have loaded their resources.\nsecuredFields.onLoad = function(loadObject){\n};\nWhen this callback is invoked, the loadObject includes a parameter\u00a0iframesLoaded set to true.\nStyling Secured Fields\nAll card payment method input fields on the Secured Fields form are represented as\u00a0iframe elements, which securely capture payment data from your shoppers. Use JavaScript to style the fields:\n\n\nCreate an object and set the following CSS values:\u00a0\nYou can provide styling for the following:\n\nbase: Base styling applied to the iframe. All styling extends from this style.\nerror: Styling applied when a field fails validation.\nplaceholder: Styling applied to the field's placeholder values.\nvalidated: Styling applied once a field passes validation.\n\nHere is an example style object:\n\/\/ Define style object\nvar styleObject = {\n  base: {\n    color: 'black',\n    fontSize: '16px',\n    fontSmoothing: 'antialiased',\n    fontFamily: 'Helvetica'\n  },\n  error: {\n    color: 'red'\n  },\n  placeholder: {\n    color: '#d8d8d8'\n  },\n  validated: {\n    color: 'green'\n  }\n};\n\n\nStyle the elements with the following properties. These properties map to CSS properties and accept allowed CSS values:\nJavaScriptCSSbackgroundbackgroundcolorcolordisplaydisplayfontfontfontFamilyfont-familyfontSizefont-sizefontSizeAdjustfont-size-adjustfontSmoothingfont-smoothingfontStretchfont-stretchfontStylefont-stylefontVariantfont-variantfontVariantAlternatesfont-variant-alternatesfontVariantCapsfont-variant-capsfontVariantEastAsianfont-variant-east-asianfontVariantLigaturesfont-variant-ligaturesfontVariantNumericfont-variant-numericfontWeightfont-weightletterSpacingletter-spacinglineHeightline-heightmozOsxFontSmoothingmoz-osx-font-smoothingmozTransitionmoz-transitionoutlineoutlineopacityopacitypaddingpaddingtextAligntext-aligntextShadowtext-shadowtransitiontransitionwebkitFontSmoothingwebkit-font-smoothingwebkitTransitionwebkit-transition\n\n\nConfiguration object\nAdd optional properties in the configuration at the bottom of the\u00a0&lt;body&gt;\u00a0of your payments page.\n  &lt;script type=\"text\/javascript\"&gt;\n   var csfSetupObj = {\n      rootNode: '.cards-div',\n      configObject : {\n        clientKey : \"YOUR_CLIENT_KEY\",\n        cardGroupTypes: ['maestro','visa','amex'] \/\/ OPTIONAL\n        },\n      allowedDOMAccess : false, \/\/ OPTIONAL  - Defaults to true\n   };\n   var securedFields = csf(csfSetupObj);\n  &lt;\/script&gt;\n\ncardGroupTypes: Optional. Configure supported card types to facilitate brand recognition used in the\u00a0onBrand\u00a0callback. Defaults to\u00a0['mc','visa','amex'].\u00a0See list of\u00a0available card types. If a shopper enters a card type not specified in the\u00a0cardGroupTypes\u00a0configuration, the onBrand callback will not be invoked.\nallowedDOMAccess: Optional. Enables or disables adding encrypted values to\u00a0hidden\u00a0&lt;input&gt;\u00a0fields in the\u00a0&lt;div&gt;\u00a0that holds the\u00a0data-cse\u00a0elements.\u00a0Defaults to\u00a0true for a standalone implementation, false for Secured Fields Component. If you do not want Secured Fields to\u00a0automatically add hidden input fields,\u00a0set\u00a0allowedDOMAccess\u00a0to\u00a0false.\u00a0To get the encrypted card details when\u00a0allowedDOMAccess\u00a0is set to\u00a0false, use the values from the\u00a0blob\u00a0property on the\u00a0onFieldValid\u00a0callback object. This callback is invoked as a specific field is validated and encrypted.\nFor more information, see\u00a0Secured Fields callbacks.\n\nSupported card types\nUse the\u00a0values in this list when specifying card types in the\u00a0brands\u00a0array.\u00a0If card types are not provided, the configuration defaults to\u00a0['mc','visa','amex'].\u00a0\n\n\n\nCard Type\nDescription\n\n\n\n\namex\nAmex\n\n\nargencard\nArgencard\n\n\nbcmc\nBancontact\/Mister Cash\n\n\nbijcard\nde Bijenkorf Card\n\n\ncabal\nCabal\n\n\ncartebancaire\nCarte Bancaires\n\n\ncodensa\nCodensa\n\n\ncup\nChina Union Pay\n\n\ndankort\nDankort\n\n\ndiners\nDiners Club\n\n\ndiscover\nDiscover\n\n\nelo\nELO\n\n\nforbrugsforeningen\nForbrugsforeningen\n\n\nhiper\nHiperCard\n\n\nhipercard\nHiperCard\n\n\njcb\nJCB\n\n\nkarenmillen\nKaren Millen GiftCard\n\n\nlaser\nLaser\n\n\nmaestro\nMaestro\n\n\nmaestrouk\nMaestro UK\n\n\nmc\nMastercard\n\n\nmcalphabankbonus\nAlpha Bank Mastercard Bonus\n\n\nmir\nMIR\n\n\nnaranja\nNaranja\n\n\noasis\nOasis GiftCard\n\n\nshopping\nTarjeta Shopping\n\n\nsolo\nSolo\n\n\ntroy\nTroy\n\n\nuatp\nUATP\n\n\nvisa\nVisa\n\n\nvisaalphabankbonus\nAlpha Bank Visa Bonus\n\n\nvisadankort\nVisa Dankort\n\n\nwarehouse\nWarehouse GiftCard\n\n\n\nRelease notes\nThe Custom Card Web Component replaces all older versions of Secured Fields (versions 1.x.x).\nSecured Fields 1.5.2 (March 18, 2019)\nThis release includes:\n\nFixes for issues with device fingerprinting: for when there are multiple cards configured in Secured Fields and for the errors generated when initializing Secured Fields the second time.\nFix for the missing 4-digit placeholder when using American Express saved card details.\u00a0\nSupport for propagating the last 4 digits of a card number in the endDigits property of\u00a0\n  onFieldValid\n\u00a0callback object.\n\nSecured Fields 1.5.1 (January 28, 2019)\nThis release includes:\n\nFix for\u00a0an issue in iOS Safari where the numerical keyboard won't retract.\nFix that allows setting a blank placeholder.\n\nSecured Fields 1.5.0 (January 7, 2019)\nThis release includes the fix that allows shoppers\u00a0with Kaspersky Internet Security and SafeMoney enabled in their browsers to proceed with entering their card details in the input fields.\nWe added an iframe that will trigger Kaspersky Internet Security to prompt shoppers to authorize loading iframes from Adyen.\u00a0If the shopper allows iframes to load or the shopper does not have Kaspersky installed, the normal iframe will be loaded.\nSecured Fields 1.3.4 (December 3, 2018)\nThis release includes:\n\nSupport for device fingerprinting within Secured Fields resulting to improved performance compared to the CSE implementation.\nImproved tabbing navigation\u00a0on Firefox.\nNew\u00a0aria-placeholder\u00a0 and\u00a0aria-label\u00a0attributes.\nFix to now allow deleting spaces between card numbers.\nAdditional supported card types for onBrand callback:\u00a0naranja, cabal, shopping, argencard, troy, forbrugsforeningen\n\nSecured Fields 1.3.3 (October 15, 2018)\nThis release includes:\n\nA bug fix to prevent the error message briefly shown on iOS Safari when typing a 13-digit Visa number.\nSupport for\u00a0styling validated fields.\n\nSecured Fields 1.3.2 (October 8, 2018)\nThis release includes new error handling when a shopper types a wrong card number into a single branded card field. For example, SF will generate an error after typing 7 digits Visa number into a BCMC field.\nSecured Fields 1.3.1 (October 1, 2018)\nThis release includes the new\u00a0Secured Fields callbacks callback and\u00a0showWarnings\u00a0property in the configuration object.\nSecured Fields 1.3.0\nThis release includes:\u00a0\nNew\n\nSupport for dynamically setting CVC placeholder length based on card brand.\n\nFixes\n\nA bug fix for iOS Safari blur event that was not firing and was causing card validation errors for BCMC.\n\nImprovements\n\n\nChanges in property names for\u00a0onFieldValid\u00a0callback object.\n\n\nImproved formatting of card numbers for single branded cards.\n\n\nSecured Fields 1.2.1\nThis release includes the fix for issues on blur and focus events on iOS Safari causing unexpected behavior in input fields.\nSecured Fields 1.2.0\nThis release includes:\u00a0\nNew\n\n\nSupport for allowedDOMAccess\u00a0property\u00a0in the configuration object.\n\n\nSupport for 19-digit Visa numbers.\u00a0\n\n\nReplaced data-hosted-id\u00a0with\u00a0data-cse\u00a0attributes.\n\n\nImprovements\n\nSupport for placeholder styling on IE and Firefox.\u00a0\nDowngraded postMessage event origin mismatch messages from error to warning.\u00a0\nNew properties\u00a0on\u00a0onFieldValid and onFocus callback objects.\n\nSecured Fields 1.1.4\nThis release includes improved expiry date validation and sending the resulting error message to the onError callback.","type":"page","locale":"en","boost":17,"hierarchy":{"lvl0":"Home","lvl1":"Payment methods","lvl2":"Cards","lvl3":"Standalone Secured Fields"},"hierarchy_url":{"lvl0":"https:\/\/docs.adyen.com\/","lvl1":"https:\/\/docs.adyen.com\/payment-methods","lvl2":"https:\/\/docs.adyen.com\/payment-methods\/cards","lvl3":"\/payment-methods\/cards\/secured-fields-standalone"},"levels":4,"category":"Payment method","category_color":"green","tags":["Standalone","Secured","Fields"]}}
