What is a proper way to implement offline payment method in Magento 2.2.*?
I did it old style like in module "magento/module-offline-payments" and it is working.
My payment model extends Magento\Payment\Model\Method\AbstractMethod.
I wonder that Magento\Payment\Model\Method\AbstractMethod is deprecated and suggestion is that custom payment method should extend Magento\Payment\Model\Method\Adapter but I don't want to make integration with any payment provider gateway.
In Magento 2 guides I found only integration with third party approach:
Please check below blog post to how to create sample payment method without any gateway
Hope you will like this.
If works then mark as solution
As I mentioned above I created offline payment method but it use Magento\Payment\Model\Method\AbstractMethod. Since Magento\Payment\Model\Method\AbstractMethod is deprecated I would like to know proper way to implement offline payment method. In tutorial that you provided Magento\Payment\Model\Method\AbstractMethod is also used so this is not solution.
Sorry I used another email, lordhansolo it's me.
Magento 2 by default using that class
more info you can find:-
hope it will help you.
As I mentioned above I did it like magento but it looks like not proper way since Checkmo also extends deprecated class \Magento\Payment\Model\Method\AbstractMethod.
I implemented module and it works but I also used \Magento\Payment\Model\Method\AbstractMethod. It looks like there is not implemented alternate way yet.