From 53ba53baee19643474648f0e527ff1bbcfe5b5bc Mon Sep 17 00:00:00 2001 From: Giorgos Adam Date: Wed, 21 Mar 2018 11:35:25 +0100 Subject: [PATCH] Update docs for cseInstance.monitor and enabledValidations --- Options.md | 6 +++--- README.md | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Options.md b/Options.md index eda4953..e619259 100644 --- a/Options.md +++ b/Options.md @@ -59,7 +59,7 @@ The `createEncryption ( key , `*`options`*` )` and `createEncryptedForm ( form, When no value is supplied, the default '34,37' will be used. ## Option in createEncryptedForm() -Supported fields: `enabledValidations`, `numberIgnoreNonNumeric`, `cvcIgnoreBins`, `fourDigitCvcForBins`, `submitButtonAlwaysEnabled`, `fieldNameAttribute`, `onsubmit`, `onvalidate` +Supported fields: `enableValidations`, `numberIgnoreNonNumeric`, `cvcIgnoreBins`, `fourDigitCvcForBins`, `submitButtonAlwaysEnabled`, `fieldNameAttribute`, `onsubmit`, `onvalidate` *Example:* ```Javascript @@ -77,13 +77,13 @@ var cseForm = createEncryptedForm ( form, key , { When the card type detection addon is being enabled, the `cardTypeElement` option is also supported. ## Option in createEncryption() -Currently `enabledValidations`, `numberIgnoreNonNumeric`, `fourDigitCvcForBins` and `cvcIgnoreBins` are supported. +Currently `enableValidations`, `numberIgnoreNonNumeric`, `fourDigitCvcForBins` and `cvcIgnoreBins` are supported. ```Javascript var cse = createEncryption ( key , { "enableValidations" : true, "numberIgnoreNonNumeric" : true, - "cvcIgnoreBins" = "6703", + "cvcIgnoreBins" : "6703", "fourDigitCvcForBins" : "34,37" } ); ``` diff --git a/README.md b/README.md index 078eed3..349d807 100644 --- a/README.md +++ b/README.md @@ -134,8 +134,8 @@ Note that this kind of integration may not be suitable for you, if you want to p // Enable behavior tracking on number and CVC fields // Initiate before user interacts with the refeenced fields. - cseInstance.monitor( 'number', document.getElementById('numberField') ); - cseInstance.monitor( 'cvc', document.getElementById('numberField') ); + cseInstance.monitor( 'number', document.getElementById('adyen-encrypted-form-number') ); + cseInstance.monitor( 'cvc', document.getElementById('adyen-encrypted-form-cvc') ); })();