Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
sdk-node-apis-efi
Advanced tools
Readme
Um módulo nodejs para integrar seu backend com os serviços de pagamento da Efí.
$ npm install sdk-node-apis-efi
Importe o módulo:
const EfiPay = require('sdk-node-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.
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 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-node-apis-efi.git
$ cd sdk-node-apis-efi/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.sejaefi.com.br/.
FAQs
Module for integration with Efi Bank API
The npm package sdk-node-apis-efi receives a total of 283 weekly downloads. As such, sdk-node-apis-efi popularity was classified as not popular.
We found that sdk-node-apis-efi demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.