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?


1 Answer 1


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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.