Skip to content
On this page

Fakturownia-Integration

Package for generate Fakturownia Integration from order

swaggercodecovTests PHPUnit in environmentsMaintainabilityTest Coveragedownloadsdownloadsdownloads

What does it do

This package is used to add invoices to Fakturownia after catch dispatched event EscolaLms\Cart\Events\OrderCreated.

Installing

  • composer require escolalms/questionnaire
  • php artisan migrate
  • Create file .env and set to your account in Fakturownia
FAKTUROWNIA_HOST=
FAKTUROWNIA_TOKEN=

Database

Add table fakturownia_orders and relation to table order from packed escolalms/cart

Example or Tutorial

Endpoints

swagger

Tests

Run ./vendor/bin/phpunit to run tests. See tests folder as it's quite good staring point as documentation appendix.

Test details codecov Tests PHPUnit in environments

Events

This package does not dispatch any events.

Listeners

  • ImportInvoiceListener catch EscolaLms\Cart\Events\OrderCreated => add invoice to Fakturownia

How to use this on frontend.

Fakturownia is a package similar in operation to invoices, but is targeted at the Polish market. The implementation on the front-end is the same as for the invoices package.

Permissions

  • view from escolalms/cart to get invoice pdf