Have ideas to improve npm?Join in the discussion! »

    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!
        });

    Install

    npm i adyen-encryption

    DownloadsWeekly Downloads

    2,004

    Version

    0.1.1

    License

    Unlicense

    Last publish

    Collaborators

    • avatar