
Security News
MCP Community Begins Work on Official MCP Metaregistry
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
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,391 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 MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.