All Projects → gerencianet → gn-api-sdk-node

gerencianet / gn-api-sdk-node

Licence: MIT license
SDK em NodeJS integrada a API Gerencianet. Esta SDK está preparada para integração à API Pix e API Boletos da Gerencianet, que lhe permite realizar o gerenciamento de cobranças Pix com QR Code e Pix Copia e Cola, boleto/Bolix, carnê, cartão de crédito e muito mais.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to gn-api-sdk-node

pix-payload-generator.net
Gerar payload para qrcode estático PIX. (Sistema de pagamento instantâneo do Brasil) Sem a necessidade de conexão com um PSP.
Stars: ✭ 23 (-30.3%)
Mutual labels:  qrcode, pix
oscm
An Enterprise-ready Cloud Services Management Software.
Stars: ✭ 32 (-3.03%)
Mutual labels:  marketplace, subscription
TimelineCards
Presenting timelines as cards, single or bundled in scrollable feed!
Stars: ✭ 423 (+1181.82%)
Mutual labels:  card
drf-stripe-subscription
An out-of-box Django REST framework solution for payment and subscription management using Stripe.
Stars: ✭ 42 (+27.27%)
Mutual labels:  subscription
Vestaboard
An API Wrapper for Vestaboards written in Python
Stars: ✭ 23 (-30.3%)
Mutual labels:  subscription
Dracker
An iOS and React App to track debt and send/receive payments.
Stars: ✭ 22 (-33.33%)
Mutual labels:  qrcode
slider-button-card
A button card with integrated slider
Stars: ✭ 319 (+866.67%)
Mutual labels:  card
Xam.Forms.QRCode
A QRCode renderer based on SkiaSharp.
Stars: ✭ 16 (-51.52%)
Mutual labels:  qrcode
WeConnect-python
Python API for the Volkswagen WeConnect Services
Stars: ✭ 27 (-18.18%)
Mutual labels:  carnet
covid19-qrcode
😷 Get a temporary QR-code, which to use to entrance public facilities using the NAVER QR-CheckIn service. 집합시설 출입을 위한 대한민국 전자출입명부 QR 체크인에 사용되는 QR 이미지를 빠르게 추출합니다.
Stars: ✭ 20 (-39.39%)
Mutual labels:  qrcode
starter
Create vertical search web application in minutes with generator (based on ItemsAPI)
Stars: ✭ 21 (-36.36%)
Mutual labels:  marketplace
ha-card-weather-conditions
Weather condition card (Lovelace) for Home Assistant.
Stars: ✭ 101 (+206.06%)
Mutual labels:  card
ex pesa
Payment Library For Most Public Payment API's in Kenya and hopefully Africa. Let us get this moneybag
Stars: ✭ 19 (-42.42%)
Mutual labels:  card
anchor
Create Dynamic CLI's as your GitOps Marketplace
Stars: ✭ 38 (+15.15%)
Mutual labels:  marketplace
qr-code-unity-3d-read-generate
Generating a QR code / Scanning a QR code in Unity 3D. Pre-build DLL and sample code from old Unity
Stars: ✭ 70 (+112.12%)
Mutual labels:  qrcode
attic
A collection of personal tiny tools - mirror of https://gitlab.com/hydrargyrum/attic
Stars: ✭ 17 (-48.48%)
Mutual labels:  qrcode
QrCodeGenerator
QR Code Generator for .NET
Stars: ✭ 66 (+100%)
Mutual labels:  qrcode
discord-leveling-system-ranking-system
A simple rankcard system with the ranking system included using an enmap database, and canvacord
Stars: ✭ 49 (+48.48%)
Mutual labels:  card
r scan
📷🖨Flutter二维码&条形码扫描插件,支持相机、文件、链接、Uint8List类型扫描
Stars: ✭ 108 (+227.27%)
Mutual labels:  qrcode
wave
Wave - The Software as a Service Starter Kit, designed to help you build the SAAS of your dreams 🚀 💰
Stars: ✭ 3,646 (+10948.48%)
Mutual labels:  subscription

gn-api-sdk-node

A nodejs module for integration of your backend with the payment services provided by Gerencianet.

Um módulo nodejs para integrar seu backend com os serviços de pagamento da Gerencianet.

NPM

Build Status Code Climate Test Coverage Dependency Status npm version

Instalação

$ npm install gn-api-sdk-node

Uso Básico

Importe o módulo:

var Gerencianet = require('gn-api-sdk-node');

Insira suas credenciais e defina se deseja usar o sandbox ou não. Você também pode usar o arquivo examples/credentials.js de modelo.

module.exports = {
	// PRODUÇÃO = false
	// HOMOLOGAÇÃO = true
	sandbox: false,
	client_id: 'seuClientId',
	client_secret: 'seuClientSecret',
	pix_cert: 'caminhoAteOCertificadoPix',
};

Instancie o módulo passando as options:

var gerencianet = new Gerencianet(options);

Crie uma cobrança:

var chargeInput = {
  items: [{
    name: 'Product A',
    value: 1000,
    amount: 2
  }]
}

gerencianet
  .createCharge({}, chargeInput)
      .then((resposta) => {
        console.log(resposta)
    })
    .catch((error) => {
        console.log(error);
    })
    .done();

Exemplos

Para executar os exemplos, clone este repo e instale as dependências:

$ git clone [email protected]:gerencianet/gn-api-sdk-node.git
$ cd gn-api-sdk-node/examples
$ npm install

Defina suas credenciais em credentials.js:

module.exports = {
	// PRODUÇÃO = false
	// HOMOLOGAÇÃO = true
	sandbox: false,
	client_id: 'seuClientId',
	client_secret: 'seuClientSecret',
	pix_cert: 'caminhoAteOCertificadoPix',
};

Em seguida, execute o exemplo que você deseja:

$ node createCharge.js

Documentação

A documentação completa com todos os endpoints disponíveis você encontra em: https://dev.gerencianet.com.br/.

Changelog

CHANGELOG

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].