Each payment method can be done as separate module or few methods can be combined in same module if they could be used together or share functionality. It is another complex job for people who are trying to figure out how they can connect their own countries’ bank payment gateways to their Magento installations. Here is how to create a payment gateway in Magento.
Basic payment method
Payment method with form fields
Now let’s see how to create a payment method with form fields. Here the title of the payment method is “Pay by Check” and it has two fields Check No and Check Date. The user enters these fields and these are saved to the database for order processing.