adyen-encryption

Adyen encryption for node or browsers. Without forms.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
adyen-encryption
0.1.17 years ago7 years agoMinified + gzip package size for adyen-encryption in KB

Readme

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