I wish to add new payment method for credit cards. How do I add Credit card as a new payment method in magento 2. Please Provide me a solution to customize payment methods


2 Answers 2


Use this link for creating custom payment method in Magento 2

1) https://www.classyllama.com/blog/how-to-create-payment-method-magento-2 To get the code directly from here

2) https://webkul.com/blog/add-cc-form-custom-payment-method-magento2/


You can refer this module: https://github.com/stableaddons/ccpp-credit-card

It use credit card form with 2c2p payment gateway

  • 1
    link is now broken.. Commented Jan 22, 2020 at 2:03

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.