Creating a new offline payment method module in magento 2
As, we know that magento 2 supports a wide variety of payment method including-- Online payment Cash on delivery Paypal payment Solution Amazon pay Card payment Braintree payment solution Cheque and Money Order If you wish to add any other offline payment method along with these existing one then you are at right place. Store view Today i am going to show you how to create module which enables us to choose a custom offline payment method at checkout page in magento 2. Follow these steps in order to achieve this- 1. Create a new folder under app/code/ Excellence / OfflinePaymentMethods Here Excellence is namespace and OfflinePaymentMethods is module name. 2. Create registration.php file under app/code/Excellence/OfflinePaymentMethods with following content registration.php <?php \Magento\Framework\Component\ComponentRegistrar::register( \Magento\Framework\Component\ComponentRegistrar::MODULE, 'Excellence_OfflinePay