Socket
Socket
Sign inDemoInstall

node-adyen-encrypt

Package Overview
Dependencies
0
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    node-adyen-encrypt

Adyen encryption for Node.js.


Version published
Maintainers
1
Install size
61.1 kB
Created

Readme

Source

node-adyen-encrypt

Adyen encryption for Node.js.

     const adyenEncrypt = require('node-adyen-encrypt');
     var adyenKey     =   "your key as retrieved from the Adyen Customer Area Web Service User page"; 
     var options = {}; // See adyen-encrypt.js for details
     var cardData = {
         number : cardNumber,       // 'xxxx xxxx xxxx xxxx'
         cvc : cvc,                 //'xxx'
         holderName : holderName,   // 'John Doe'
         expiryMonth : expiryMonth, //'MM'
         expiryYear : expiryYear,   // 'YYYY'
         generationtime : generationtime // new Date().toISOString()
     };
     var cseInstance = adyenEncrypt.createEncryption(adyenKey, options);
     cseInstance.validate(cardData);
     var dataEncrypted = cseInstance.encrypt(cardData); 

Keywords

FAQs

Last updated on 22 Feb 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc