Thanks for the code shared, this helped me in understanding how payment modules work and how to restrict.
I want to create IVRs module on similar lines, where tele caller listens through the ivrs and marks payment done via ivrs. The only thing diff in this code and my code is after order is placed this module shows 0 paid and all amount is due and in my case all paid and 0 due.
Doesnt work correctly in Magento 220.127.116.11. It causes an tax issue if product price includes tax. Shows right sum when creating the order in admin but shows wrong sum when generating the invoice. Any solutions?
Using 18.104.22.168 with flat rate shipping and showing all prices including and excluding tax it appears that once an order is placed in the backend using this method the shipping is shown twice with tax rather than inc and ex. This results in the final value shown being wrong by the same amount as the tax on the shipping.
So if that can be fixed I think everything will be working correctly.....
I’m trying to understand how this all works but I’ve got nowhere so far, so if anyone has a solution it would be very much appreciated.
For anyone following this thread, I wish that I’d come across this free extension before spending several hours trying to implement all the various (very helpful) solutions that have been previously posted: