Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
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:
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();
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',
pix_cert: '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 2,124 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.