Add custom payment gateway to ERPnext

How Can I integrate my country custom bank gateway?

You can examine other gateway source codes in the GitHub.

I installed payments app in frappe from its official repository but I can not work with it