This is an old revision of the document!
As developers experience it is difficult to build new shipping and payment methods in /local or /community since the new version 220.127.116.11 (or earlier). All the examples don’t work. Until later when this all have fixed you can build it in the core now (so it works for all versions). There is another article “duplicate flat rate shipping method” and that works immediately. You only need to find out how to change it for your method.
So you can duplicate the Check/Money order payment method module easily like the shipping one. How to remove it later, see the shipping one.
So duplicate it as follows (checkmo to checkmo1):
- magepaymentblockforms + info : duplicate checkmo.php to checkmo1.php
- magepaymentetcconfig.xml + system.xml : duplicate the checkmo parts (and rename it to checkmo1) - magepaymentmodelmethod : duplicate checkmo.php to checkmo1.php
- designadminhtmldefaultdefaulttemplatepaymentform + info : duplicate checkmo.php to checkmo1.php
- designfrontendbasedefaulttemplatepaymentform + info : duplicate checkmo.php to checkmo1.php
That’s it and no frustrations anymore ..