Payment Gateway Module

I have managed to develop a custom payment gateway using the omnipay library for integration into Invoice Ninja. However my methods of integrating/ installation is quite tedious.

Can one create a “Payment Gateway Module” using the “Custom Module” approach?