escolalms/fakturownia-integration
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\OrderPaid.
EscolaLms/Invoices package defined routing to generate PDF invoice on the same path. The two packages cannot run in parallel.
Installing
composer require escolalms/fakturownia-integrationphp artisan migrate- Create file
.envand set to your account in Fakturownia
FAKTUROWNIA_HOST=
FAKTUROWNIA_TOKEN=
Database
Add table fakturownia_orders and relation to table order from packed escolalms/cart
Endpoints
All the endpoints are defined in
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\OrderPaid=> add invoice to Fakturownia
Permissions
The package uses the cart_order_list permission from the Cart package.
All permissions are defined in Cart package seeder