adyen-encryption

0.1.1 • Public • Published

Adyen Encryption

Compatible for NodeJS and browsers via browserify

Installation

npm install --save adyen-encryption

Usage

First of all, get a public key from Adyen.

Then you can encrypt the card data.

var CARD_DATA = {
    number: '5555444433331111',
    holderName: 'Test user',
    cvc: '737',
    expiryMonth: '06',
    expiryYear: '2016'
};
var adyenEncrypt = require('adyen-encryption');
 
adyenEncrypt.encrypt(KEY, CARD_DATA)
    .then(function(dataEncrypted){
        //card data is secure now!
    });

/adyen-encryption/

    Package Sidebar

    Install

    npm i adyen-encryption

    Weekly Downloads

    727

    Version

    0.1.1

    License

    Unlicense

    Last publish

    Collaborators

    • jarpi