Fakturownia-Integration
Package for generate Fakturownia Integration from order
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
Tests
Run ./vendor/bin/phpunit
to run tests. See tests folder as it's quite good staring point as documentation appendix.
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
fromescolalms/cart
to get invoice pdf