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

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

  • 1.0.3
  • npm
  • Socket score

Version published
Weekly downloads
4K
decreased by-19.35%
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", "encriptation_key");

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

const card_hash = await pagarme.cardHash(card_data);
const inserted_card = await pagarme.cards.insert(card_hash);
const retrived_card = await pagarme.card(inserted_card.id);
// inserted_card == retrived_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