/keez-node

Lightweight NodeJS library to integrate Keez.ro invoicing gateway in your projects

Primary LanguageTypeScriptMIT LicenseMIT

:package: keez-node

📦 keez-invocing

🚀 A simple npm package for invoicing that wraps around Keez API.

Keez wrapper using Node

npm dm npm dt

Getting started

Please consult Keez API documentation for more information on how to use the API.

Installation

npm install keez-invocing

Initialization

const keezApi = new KeezApi({
    application_id: 'KEEZ_APPLICATION_ID',
    client_eid: 'KEEZ_CLIENT_ID',
    secret: 'KEEZ_SECRET',
    user: 'KEEZ_USER',
    live: true,
});

Getting all invoices

const result = await keezApi.getAllInvoices();
console.log(result);

Creating an invoice

const result = await keezApi.createInvoice({
    amount: 400,
    currencyCode: 'RON',
    itemId: 'KEEZ_ITEM_ID',
    partner: {
        isLegalPerson: false,
        partnerName: 'John Doe',
        countryName: 'Romania',
        countryCode: 'RO',
        countyCode: 'RO.B',
        countyName: 'Bucuresti',
        addressDetails: 'Str. Comerciala nr. 4',
        cityName: 'Bucharest',
        identificationNumber: '1234',
    },
    paymentType: 10,
    series: 'exampleSeries',
});
console.log(result);

🤝 Contributing

Contributions, issues and feature requests are welcome!

📝 License

Copyright © 2023 TPN LABS - All rights reserved. This project is MIT licensed.