paymaster-api
v1.0.0
Published
Library for rest api paymaster https://paymaster.ru/
Downloads
4
Readme
Install
$ npm install paymaster-api
Usage
- define environment variables
- PAYMASTER_LOGIN(with role Операционист or Бухгалтер)
- PAYMASTER_PASSWORD
- PAYMASTER_ID(optionally)
- require paymaster-api module
const paymaster = require('paymaster-api');
- run any method from https://paymaster.ru/docs/restapi.html
paymaster.listPaymentsFilter()
.then(({Overflow, Payments}) => {
console.log({Overflow, Payments})
})
.catch(error => {
console.error(error)
process.exit(error.code)
})