How can I develop a custom payment gateway in magento 2.3 version.
I tried many tutorials but none of them is working correctly.
What tutorial best to follow?
Magento2 – Custom Payment Gateway Setup in Magento 2.3
magento2
magento2
How can I develop a custom payment gateway in magento 2.3 version.
I tried many tutorials but none of them is working correctly.
What tutorial best to follow?
Best Answer
If you have created your module like
app/code/Vendor/Module
then follow these stepsin
app/code/Vendor/Module/etc/adminhtml/system.xml
in
app/code/Vendor/Module/etc/config.xml
in
app/code/Vendor/Module/etc/payment.xml
in
app/code/Vendor/Module/Model/Payment/Custompayment.php
in
app/code/Vendor/Module/view/frontend/layout/checkout_index_index.xml
in
app/code/Vendor/Module/view/frontend/web/js/view/payment/method-renderer/custompayment-method.js
in
app/code/Vendor/Module/view/frontend/web/js/view/payment/custompayment.js
in
app/code/Vendor/Module/view/frontend/web/template/payment/custompayment.html
This will create new payment with name
custompayment
:)