business.ru_printcheck
v0.0.3
Published
Business.ru Print Check = This project was created for users of the Online Checks service, who need to print checks on an online cash register in accordance with Russia Federal Law-54 using Node.js. **** Installation - To install, use the command "npm i
Downloads
4
Readme
Business.ru Print Check
This project was created for users of the Online Checks service, who need to print checks on an online cash register in accordance with Russia Federal Law-54 using Node.js.
Installation
To install, use the command "npm install business.ru_printcheck".
Usage
To use, create yourfilename.js file.
- In the file create two objects:a) object with app_id and secret_key b) with your verification data. All objects you need to create in accordance with the API protocol https://app.swaggerhub.com/apis-docs/Business.Ru/check.business.ru/1.2.2
- Import print module
const print = require ('business.ru_printcheck');
Initialise function
print.printCheck(dataForPrint,checkCommand);
- First argument is object with app_id and secret_key;
- Second argument is verification data;
- After initialising function, all information will be logged to the combined.log.
Example of code
object with your check data:
const checkCommand = {
c_num: "651654321654321_45454544",
smsEmail54FZ: "[email protected]",
payed_cash: "2500",
payed_cashless: "",
payed_prepay: "",
payed_nextcredit: "",
payed_consideration: "",
discount_info: "",
bonuscard_info: "",
author: "Козинов Сергей Анатольевич",
goods: [{
"count": "1",
"price": "2500",
"sum": 2500,
"section": "",
"name": "Сертификат",
"nds_not_apply": true,
"nds_value": "0",
"payment_mode": 4,
"item_type": 1,
"agent_info": ""
}],
tag1055: 4
};
object with your app_id and secret_key:
const dataForPrint = {
app_id: "16ae59a4-59b4-471f-80b9-b49f37c8c2a3",
secret_key: "mhHKcpIbudA1nkFwoJVSOerTG4DNfEaP",
};
Contributors
- Kirill Silianov - [email protected]
- Eduard Gataullin - [email protected]