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

epayco-tokenizer

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

epayco-tokenizer

Agnostic browser tokenizer for epayco

  • 1.0.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-33.33%
Maintainers
1
Weekly downloads
 
Created
Source

epayco-tokenizer

installation

npm install epayco-tokenizer

How to use

As a Promise


import Tokenizer from "epayco-tokenizer";

const tokenizer = new Tokenizer(<EPAYCO_PUBLIC_TOKEN>);

const payload = [
    {
      type: "name",
      value: "Fulano de tal"
    },
    {
      type: "email",
      value: "test@test.com"
    },
    {
      type: "number",
      value: "4575623182290326"
    },
    {
      type: "cvc",
      value: "123"
    },
    {
      type: "date_exp",
      value: "07" + "/" + "2017",
      required: !0
    }
  ];

const response = tokenizer.init(payload).then(response => ...));

or with async/await syntax


import Tokenizer from "epayco-tokenizer";

const tokenizer = new Tokenizer(<EPAYCO_PUBLIC_TOKEN>);

const payload = [
    {
      type: "name",
      value: "Fulano de tal"
    },
    {
      type: "email",
      value: "test@test.com"
    },
    {
      type: "number",
      value: "4575623182290326"
    },
    {
      type: "cvc",
      value: "123"
    },
    {
      type: "date_exp",
      value: "07" + "/" + "2017",
      required: !0
    }
  ];

const response = await tokenizer.init(payload);

Keywords

FAQs

Package last updated on 07 Dec 2018

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