Skip to content
This repository has been archived by the owner on Mar 4, 2024. It is now read-only.

Commit

Permalink
Update docs for cseInstance.monitor and enabledValidations
Browse files Browse the repository at this point in the history
  • Loading branch information
lancergr committed Mar 21, 2018
1 parent 748cdba commit 53ba53b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Options.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
} );
```
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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') );
})();
</script>
Expand Down

0 comments on commit 53ba53b

Please sign in to comment.