1
Payment Gateways as Modules
Source: invoiceninja/invoiceninja#12829 · opened by @karneaud
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 ??
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 ??
No pledges yet. Be the first to back this.
Comments
Similar requests
New Payments Gateways for Latam
0 votes · 0 comments
[Feature Request] reCaptcha on Payment Gateways
0 votes · 0 comments
Payment Gateways as Modules
0 votes · 0 comments
Apply One Payment to Multiple Expenses (Bulk Expense Payment)
1 vote · 0 comments
add payment tab inside invoice view
0 votes · 0 comments
No comments yet.