Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

adyen-encrypt

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

adyen-encrypt

An ES2015 Adyen-CSE rewrite

  • 0.2.0-beta.1
  • next
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
119
increased by98.33%
Maintainers
1
Weekly downloads
 
Created
Source

adyen-encrypt

A rewrite of Adyen-CSE in ES2015 for the browser

npm i -S adyen-encrypt
Constructor

key The public key string you can find in the Adyen customer area

opts An object containing optionals as described below

import AdyenEncrypt from 'adyen-encrypt'

const instance = new AdyenEncrypt(key, {
  enableValidations: true,
  numberIgnoreNonNumeric: true,
  cvcIgnoreBins: '101,404'
})
encrypt

data The object to encrypt

Returns the encrypted string

instance.encrypt({
  number: '5555 4444 3333 1111',
  cvc: '737',
  expiryMonth: '06',
  expiryYear: '2016',
  holderName: 'Balthazar Gronon'
})

FAQs

Package last updated on 28 Dec 2016

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc