
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
sdk-typescript-apis-efi
Advanced tools
Um módulo nodejs para integrar seu backend com os serviços de pagamento da Efí.
$ npm install sdk-typescript-apis-efi
Importe o módulo:
import EfiPay from 'sdk-typescript-apis-efi';
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.
export default {
// PRODUÇÃO = false
// HOMOLOGAÇÃO = true
sandbox: false,
client_id: 'seuClientId',
client_secret: 'seuClientSecret',
certificate: 'caminho/Ate/O/Certificado/Pix',
cert_base64: false, // Indica se o certificado está em base64 ou não
};
Instancie o módulo passando as options:
const efipay = new EfiPay(options);
Crie uma cobrança:
let chargeInput = {
items: [
{
name: 'Product A',
value: 1000,
amount: 2,
},
],
};
efipay
.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:efipay/sdk-typescript-apis-efi.git
$ cd sdk-typescript-apis-efi/examples
$ npm install
Defina suas credenciais em credentials.js:
export default {
// PRODUÇÃO = false
// HOMOLOGAÇÃO = true
sandbox: false,
client_id: 'seuClientId',
client_secret: 'seuClientSecret',
certificate: 'caminhoAteOCertificadoPix',
cert_base64: false, // Indica se o certificado está em base64 ou não
};
Em seguida, execute o exemplo que você deseja:
$ npx tsx createCharge.ts
A documentação completa com todos os endpoints disponíveis você encontra em: https://dev.sejaefi.com.br/.
FAQs
Module for integration with Efi Bank API
The npm package sdk-typescript-apis-efi receives a total of 368 weekly downloads. As such, sdk-typescript-apis-efi popularity was classified as not popular.
We found that sdk-typescript-apis-efi demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.