
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
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.8
FAQs
Module for integration with Gerencianet API
The npm package gn-api-sdk-node receives a total of 1,715 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.