1.3.4 • Published 6 years ago

techpar-bepay-client v1.3.4

Weekly downloads
85
License
Apache2
Repository
github
Last release
6 years ago

techpar-bepay-client

javascript client for bepay payments server api

installing

npm i techpar-bepay-client

usage

const tpbpcli = require("techpar-bepay-client")

const bepay = client({
  baseURL: "https://homolog-api.bepay.com/v1", // or production api
  apiAccessKey: "<your access key>",
  secretKey: "<your secret key>"
})

bepay.saldo("<your mediator account id>").then(ret => {
  // do your magic with ret

}).catch(err => {
  console.log(err)
})

Official docs

environment variables

  • in order to run the tests you must provide the following environment variables:
    • BASE_URL
    • APIACCESSKEY
    • SECRETKEY
    • MEDIATORACCOUNTID
    • CPF
    • CNPJ
    • PHONE_NUMBER
    • EMAIL
    • LOGRADOURO
    • NUMERO
    • COMPLEMENTO
    • BAIRRO
    • CIDADE
    • ESTADO
    • CEP
    • PAIS
    • SENDERCPF
    • PHONE_NUMBER_CNPJ
  • you can set it on your .bashrc or windows user variables

1.3.4

6 years ago

1.3.3

6 years ago

1.3.2

6 years ago

1.3.1

6 years ago

1.3.0

6 years ago

1.2.0

6 years ago

1.1.2

6 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago