Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
sdk-typescript-apis-efi
Advanced tools
Um módulo Typescript 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/config.ts de modelo.
export = {
// PRODUÇÃO = false
// HOMOLOGAÇÃO = true
sandbox: false,
client_id: 'seuclient_id',
client_secret: 'seuclient_secret',
certificate: 'caminhoAteOCertificadoPix',
};
Instancie o módulo passando as options:
const efipay = EfiPay(options);
Crie uma cobrança:
var body = {
items: [
{
name: 'Product A',
value: 1000,
amount: 2,
},
],
};
efipay
.createCharge({}, body)
.then((resposta: any) => {
console.log(resposta);
})
.catch((error: Promise<any>) => {
console.log(error);
})
.done();
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 config.ts:
export = {
// PRODUÇÃO = false
// HOMOLOGAÇÃO = true
sandbox: false,
client_id: 'seuclient_id',
client_secret: 'seuclient_secret',
certificate: 'caminhoAteOCertificadoPix',
};
Em seguida, execute o exemplo que você deseja:
$ ts-node createCharge.ts
A documentação completa com todos os endpoints disponíveis você encontra em: https://dev.efipay.com.br/.
FAQs
Module for integration with Efi Bank API
The npm package sdk-typescript-apis-efi receives a total of 347 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.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.