Socket
Socket
Sign inDemoInstall

pagarme

Package Overview
Dependencies
Maintainers
1
Versions
95
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pagarme

A simple nodejs wrapper for the Pagar.me API


Version published
Weekly downloads
5K
increased by1.07%
Maintainers
1
Weekly downloads
 
Created
Source

Pagar.me API for NodeJS

This is a very early stage of development, very few is supported and API will likely change.

This package uses promises and is targeted at ES6. It includes TypeScript definitions.

##Example:

const pagarme = new PagarMe("api_key", "encryption_key");

const card_data = {
    card_number: "4901720080344448",
    card_holder_name: "Usuario de Teste",
    card_expiration_date: "1219",
    card_cvv: "314"
};

// Encrypt the card data so that it is never sent over the network in plain
const card_hash = await pagarme.cardHash(card_data);

const inserted_card = await pagarme.cards.insert(card_hash);
const retrieved_card = await pagarme.card(inserted_card.id);

// inserted_card == retrieved_card

FAQs

Package last updated on 28 Apr 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