Skip to content

Implementation of the JSON standard for fiscal verification of invoices in Slovenia

License

Notifications You must be signed in to change notification settings

neonbug/fiscal-verification

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Neonbug\FiscalVerification

Latest Version on Packagist Software License Build Status

Implementation of the JSON standard for fiscal verification of invoices in Slovenia.

More info available at their site: http://www.datoteke.fu.gov.si/dpr/index_en.html

Install

Via Composer

$ composer require neonbug/fiscal-verification

Usage

See tests folder (esp. InvoiceTest.php) for usage examples.

Testing

Convert your test certificate to PEM format and place it in tests/assets folder.

Open tests/_config.php and fill out all the information (for every test to be run successfully, all fields are required).

Afterwards, open a terminal, navigate to the project's folder and run

$ composer test

TODO

  • more tests,
  • better error handling,
  • implement batch invoices (i.e. /v1/cash_registers_batch/invoices),
  • a (more robust) system for retrying requests.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email tadej@ncode.si instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

About

Implementation of the JSON standard for fiscal verification of invoices in Slovenia

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages