invoiceninja / invoiceninja

Invoices, Expenses and Tasks built with Laravel, Flutter and React
https://invoiceninja.com
Other
7.95k stars 2.23k forks source link

Payment Gateways as Modules #8924

Open karneaud opened 8 months ago

karneaud commented 8 months ago

What version of Invoice Ninja are you running? ie v4.5 / v5 v5 What environment are you running? Self-Hosted

Additional context I would like to propose using Modules as a form and a way of installing and using custom gateways instead of merging them into the main application. This should make things a bit "lighter" to deal with and manage updates.

Because you guys hard coded instantiating the driver I had to create class_aliases from the module classes and include the autoload.php into the main composer.json.

If the Modules and its dependencies being referenced and included while creating class aliases on behalf of module payment driver on install and also not having to amend the Gateway.php but rather getting method from config/ninja.php while merging the module configs (may be via config/ninja.php property e.g. gateways.custom, gateway.custom.methods ?) handled via module service provider it can provide easier approach to install custom gateways ??

karneaud commented 1 month ago

dump