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.
:warning: This module is under development and is based on the new API that Gerencianet is about to release. It won't work in production by now.
$ npm install gn-api-sdk-node
Require the module:
var Gerencianet = require('gn-api-sdk-node');
Set your credentials and whether you want to use sandbox or not:
var options = {
client_id: 'your_client_id',
client_secret: 'your_client_secret',
sandbox: true
}
Instantiate the module passing your options:
var gerencianet = new Gerencianet(options);
Create a charge:
var chargeInput = {
items: [{
name: 'Product A',
value: 1000,
amount: 2
}]
}
gerencianet
.createCharge(chargeInput)
.then(console.log)
.catch(console.log)
.done();
To run the examples, clone this repo and install the dependencies:
$ git clone git@github.com:franciscotfmc/gn-api-sdk-node.git
$ cd gn-api-sdk-node/docs/examples
$ npm install
Set your oauth keys in credentials.js:
module.exports = {
client_id: 'your_client_id',
client_secret: 'your_client_secret'
}
Then run the example you want:
$ node createCharge.js
To run the test suite, first install the dependencies, then run npm test
:
$ cd gn-api-sdk-node/
$ npm install
$ npm test
0.0.6
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.