Skip to content

Commit af29e37

Browse files
✨ Release 1.2.3
- Esse pacote agora funciona para CommonJS, ESM e TypeScript - Todos os métodos agora são exibidos na sugestão de sua IDE, indicando os campos que devem ser enviados e quais serão retornados em caso de sucesso - Adicionado a possibilidade de utilizar o certificado em Base64, basta indicar no options com a propriedade cert_base_64 (booleano) - Novos exemplos adicionados - Corrigido falha que fazia com que em casos de falha não fosse possível visualizar o conteúdo do retorno após capturar a falha com o catch
1 parent 3fed379 commit af29e37

File tree

154 files changed

+30420
-306
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

154 files changed

+30420
-306
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ Importe o módulo:
1717

1818
```js
1919
const EfiPay = require('sdk-node-apis-efi')
20+
// ou
21+
import EfiPay from 'sdk-node-apis-efi'
2022
```
2123

2224
Insira suas credenciais e defina se deseja usar o sandbox ou não.
@@ -30,6 +32,7 @@ module.exports = {
3032
client_id: 'seuClientId',
3133
client_secret: 'seuClientSecret',
3234
certificate: 'caminho/Ate/O/Certificado/Pix',
35+
cert_base64: false, // Indica se o certificado está em base64 ou não
3336
}
3437
```
3538

@@ -81,6 +84,7 @@ module.exports = {
8184
client_id: 'seuClientId',
8285
client_secret: 'seuClientSecret',
8386
certificate: 'caminhoAteOCertificadoPix',
87+
cert_base64: false, // Indica se o certificado está em base64 ou não
8488
}
8589
```
8690

babel.config.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// babel.config.js
2+
module.exports = {
3+
presets: [
4+
[
5+
'@babel/preset-env',
6+
{
7+
targets: {
8+
node: 'current',
9+
},
10+
},
11+
],
12+
],
13+
};

0 commit comments

Comments
 (0)