Its urgent - How to mark status paid automatically in custom payment gateway?

Hi

I have implemented custom payment gateway with invoiceplane. Can you
please help me to mark the status paid automatically(some piece of code
may help me). Is there anyone in forums who can help me :neutral_face:

Thanks and waiting for your response since from 2 days but nobody even replied.

Please do not create multiple threads for the same question.

https://community2.invoiceplane.com/t/topic/3321