techpar-bepay-client

1.3.4 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i techpar-bepay-client

Weekly Downloads

11

Version

1.3.4

License

Apache2

Unpacked Size

75 kB

Total Files

25

Last publish

Collaborators

  • alynnefs
  • joicenunes
  • raphael4ndrade
  • sombriks