techpar-bepay-client
v1.3.4
Published
cliente escrito em javascript para consumir as api's server do bepay
Downloads
51
Keywords
Readme
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
- link app (edge) + serviço: http://homolog-portal.bepay.com/#/login
- docs server: http://doc-api.matera.com/mp_server.html
- docs edge: http://doc-api.matera.com/mp_edge.html
environment variables
in order to run the tests you must provide the following environment variables:
- BASE_URL
- APIACCESSKEY
- SECRETKEY
- MEDIATORACCOUNTID
- CPF
- CNPJ
- PHONE_NUMBER
- LOGRADOURO
- NUMERO
- COMPLEMENTO
- BAIRRO
- CIDADE
- ESTADO
- CEP
- PAIS
- SENDERCPF
- PHONE_NUMBER_CNPJ
you can set it on your .bashrc or windows user variables