escolalms / fakturownia-integration
Escola Headless LMS Fakturownia Integration
Installs: 2 095
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:package
Requires
- php: ^7.4|^8.0
- abb/fakturownia: ^1.6
- escolalms/cart: ^0.4
- escolalms/core: ^1.2.2
- laravel/framework: ^8|^9
Requires (Dev)
- escolalms/auth: ^0.2
- orchestra/testbench: >=5.0
- phpunit/phpunit: ^9.0
Suggests
- escolalms/auth: ^0.2
- escolalms/settings: ^0.1.2
This package is auto-updated.
Last update: 2024-08-14 14:28:13 UTC
README
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-integration
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
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