I will write a payment module and read some tutorials. All tutorials are using \Magento\Payment\Model\Method\Cc
or \Magento\Payment\Model\Method\AbstractMethod
to extend from, but both are deprecated.
What ist the preferred class to write a payment method?
Best Answer
Yes, these both methods are deprecated. Instead, you should use Magento Payment Gateway.
More details about Magento Payment Gateway components and how to implement new payment integration you can find in Magento dev docs.