0

I am looking to create a Custom Payment Method. There are several tutorials online, and they all say that the system.xml and config.xml are the important files. The command I used to install is: php bin/magento setup:upgrade && php bin/magento setup:di:compile && php bin/magento setup:static-content:deploy -f

I have used multiple versions of them, however none of them have shown up under the Stores>Configuration>Sales>Payment Methods menu. What are the exact steps and magento 2 compile commands to install the custom payment method and get it installed so it is selectable?

Related Tutorials used:

https://ccbill.com/kb/magento-add-payment-method

https://magecomp.com/blog/create-custom-payment-method-in-magento-2/

2
  • do you want offline or Online (CC) payment method ?
    – Pawan
    Aug 28, 2021 at 3:53
  • You may have missed something. This methods work
    – Avesh Naik
    Aug 28, 2021 at 7:25

1 Answer 1

0
  1. Confirm you create the required file for the extension.
 a. registration.php
 b. module.xml
 c. composer.json
  1. Confirm also create the system.xml file properly and implement the <section id="payment"> this.

  2. Check you install the extension properly and that is Enable as well.

1
  • As it turns out, the curators of the website gave me the wrong server address. This method works.
    – MCattaneo
    Aug 31, 2021 at 22:27

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.