
Security News
Official Go SDK for MCP in Development, Stable Release Expected in August
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.
gn-api-sdk-node
Advanced tools
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 install gn-api-sdk-node
Importe o módulo:
const 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',
certificate: 'caminho/Ate/O/Certificado/Pix',
}
Instancie o módulo passando as options:
const gerencianet = new Gerencianet(options)
Crie uma cobrança:
let chargeInput = {
items: [
{
name: 'Product A',
value: 1000,
amount: 2,
},
],
}
gerencianet
.createCharge({}, chargeInput)
.then((resposta) => {
console.log(resposta)
})
.catch((error) => {
console.log(error)
})
Para executar os exemplos, clone este repo e instale as dependências:
$ git clone git@github.com: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',
certificate: 'caminhoAteOCertificadoPix',
}
Em seguida, execute o exemplo que você deseja:
$ node createCharge.js
A documentação completa com todos os endpoints disponíveis você encontra em: https://dev.gerencianet.com.br/.
FAQs
Module for integration with Gerencianet API
The npm package gn-api-sdk-node receives a total of 1,991 weekly downloads. As such, gn-api-sdk-node popularity was classified as popular.
We found that gn-api-sdk-node demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
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.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.
Security News
New research reveals that LLMs often fake understanding, passing benchmarks but failing to apply concepts or stay internally consistent.
Security News
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.