How to add a custom payment gateway in Invoice Ninja ?

Hello,

I’m using Invoice Ninja to manage invoices and payments, but unfortunately my local payment provider is not supported out of the box. The provider gives me a REST API with:

API Key / Secret
Endpoints to create a payment and check the transaction status
A Webhook to receive payment notifications

My questions are:

What are the correct steps to create a custom PaymentDriver inside Invoice Ninja ?
In which folders/files should I place the code?
Is there any working example or template that I can adapt to integrate with any local API?

Any guidance or sample code would be very helpful.

Thanks in advance.

Hi,

Have you seen the docs here?