Instalação
Configuração inicial
Publicado em
npm — @delbank/Delfinance-api-sdk
Veja versões, changelog e dependências no npm.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Instale e configure o SDK oficial da Delfinance para Node.js e TypeScript.
npm install @delbank/Delfinance-api-sdk
yarn add @delbank/Delfinance-api-sdk
pnpm add @delbank/Delfinance-api-sdk
import { Delfinance } from '@delbank/Delfinance-api-sdk';
const client = new Delfinance({
environment: 'sandbox', // ou 'production'
clientId: process.env.DELFINANCE_CLIENT_ID,
clientSecret: process.env.DELFINANCE_CLIENT_SECRET,
certPath: './certificado.crt',
keyPath: './chave-privada.key',
});
| Parâmetro | Tipo | Descrição |
|---|---|---|
environment | string | "sandbox" ou "production" |
clientId | string | API key do Portal do Desenvolvedor |
clientSecret | string | Client secret do Portal do Desenvolvedor |
certPath | string | Caminho para o certificado mTLS (.crt) |
keyPath | string | Caminho para a chave privada (.key) |
