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

Commit

Permalink
v 0_1_22 Support for local Korean cards
Browse files Browse the repository at this point in the history
  • Loading branch information
sponglord committed Sep 24, 2018
1 parent 55493ca commit 2ef93d7
Show file tree
Hide file tree
Showing 12 changed files with 37 additions and 24 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: `enableValidations`, `numberIgnoreNonNumeric`, `cvcIgnoreBins`, `fourDigitCvcForBins`, `submitButtonAlwaysEnabled`, `fieldNameAttribute`, `onsubmit`, `onvalidate`
Supported fields: `enabledValidations`, `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 `enableValidations`, `numberIgnoreNonNumeric`, `fourDigitCvcForBins` and `cvcIgnoreBins` are supported.
Currently `enabledValidations`, `numberIgnoreNonNumeric`, `fourDigitCvcForBins` and `cvcIgnoreBins` are supported.

```Javascript
var cse = createEncryption ( key , {
"enableValidations" : true,
"numberIgnoreNonNumeric" : true,
"cvcIgnoreBins" : "6703",
"cvcIgnoreBins" = "6703",
"fourDigitCvcForBins" : "34,37"
} );
```
9 changes: 7 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('adyen-encrypted-form-number') );
cseInstance.monitor( 'cvc', document.getElementById('adyen-encrypted-form-cvc') );
cseInstance.monitor( 'number', document.getElementById('numberField') );
cseInstance.monitor( 'cvc', document.getElementById('numberField') );
})();
</script>
Expand Down Expand Up @@ -171,6 +171,11 @@ var cseInstance = adyenEncrypt.createEncryption(key, options);

# Version History

JavaScript version 0_1_22
-------

* Support for local Korean cards

JavaScript version 0_1_21
-------

Expand Down
2 changes: 1 addition & 1 deletion adyen.encrypt.nodom.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<!-- N.B. Make sure the library is *NOT* loaded in the "head" of the HTML document -->


<script type="text/javascript" src="js/adyen.encrypt.nodom.min.js?0_1_21"></script>
<script type="text/javascript" src="js/adyen.encrypt.nodom.min.js?0_1_22"></script>
<script type="text/javascript">

// the public key
Expand Down
4 changes: 2 additions & 2 deletions adyen.encrypt.simple.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@

<!-- How to use the Adyen encryption client-side JS library -->
<!-- N.B. Make sure the library is *NOT* loaded in the "head" of the HTML document -->
<script type="text/javascript" src="js/adyen.encrypt.min.js?0_1_21"></script>
<!-- <script type="text/javascript" src="js/addOns/adyen.cardtype.min.js?0_1_21"></script>-->
<script type="text/javascript" src="js/adyen.encrypt.min.js?0_1_22"></script>
<!-- <script type="text/javascript" src="js/addOns/adyen.cardtype.min.js?0_1_22"></script>-->

<script type="text/javascript">

Expand Down
6 changes: 6 additions & 0 deletions js/addOns/adyen.cardtype.css
Original file line number Diff line number Diff line change
Expand Up @@ -128,4 +128,10 @@
}
#cardType.cse-cardtype-shopping {
background-image: url(https://live.adyen.com/hpp/img/pm/shopping_tiny.png);
}
#cardType.cse-cardtype-troy {
background-image: url(https://live.adyen.com/hpp/img/pm/troy.png);
}
#cardType.cse-cardtype-korean_local_card {
background-image: url(https://live.adyen.com/hpp/img/pm/korean_local_card_tiny.png);
}
8 changes: 5 additions & 3 deletions js/addOns/adyen.cardtype.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/addOns/adyen.cardtype.min.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions js/adyen.encrypt.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* * Stanford Javascript Crypto Library | http://crypto.stanford.edu/sjcl/
* * JSON in JavaScript | http://www.JSON.org/
*
* Version: 0_1_21
* Version: 0_1_22
* Author: ADYEN (c) 2014
<!DOCTYPE html>
Expand Down Expand Up @@ -62,8 +62,8 @@
<!-- How to use the Adyen encryption client-side JS library -->
<!-- N.B. Make sure the library is *NOT* loaded in the "head" of the HTML document -->
<script type="text/javascript" src="js/adyen.encrypt.min.js?0_1_21"></script>
<!-- <script type="text/javascript" src="js/addOns/adyen.cardtype.min.js?0_1_21"></script>-->
<script type="text/javascript" src="js/adyen.encrypt.min.js?0_1_22"></script>
<!-- <script type="text/javascript" src="js/addOns/adyen.cardtype.min.js?0_1_22"></script>-->
<script type="text/javascript">
Expand Down Expand Up @@ -276,7 +276,7 @@
}


encrypt.version = '0_1_21';
encrypt.version = '0_1_22';


/*
Expand Down
4 changes: 2 additions & 2 deletions js/adyen.encrypt.min.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions js/adyen.encrypt.nodom.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* * Stanford Javascript Crypto Library | http://crypto.stanford.edu/sjcl/
* * JSON in JavaScript | http://www.JSON.org/
*
* Version: 0_1_21
* Version: 0_1_22
* Author: ADYEN (c) 2014
<!DOCTYPE html>
Expand All @@ -31,7 +31,7 @@
<!-- N.B. Make sure the library is *NOT* loaded in the "head" of the HTML document -->
<script type="text/javascript" src="js/adyen.encrypt.nodom.min.js?0_1_21"></script>
<script type="text/javascript" src="js/adyen.encrypt.nodom.min.js?0_1_22"></script>
<script type="text/javascript">
// the public key
Expand Down Expand Up @@ -193,7 +193,7 @@
encrypt.errors = encrypt.errors || {};


encrypt.version = '0_1_21';
encrypt.version = '0_1_22';



Expand Down
4 changes: 2 additions & 2 deletions js/adyen.encrypt.nodom.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "adyen-cse-js",
"version": "0.1.21",
"version": "0.1.22",
"description": "Adyen javascript client-side encryption library",
"main": "js/adyen.encrypt.nodom.js",
"repository": {
Expand Down

0 comments on commit 2ef93d7

Please sign in to comment.