How to integrate payment integration method in the sample custom payment module. I have two files. Html and javascript.

I want to add these files in a sample payment custom module or I just want to say that I have to integrate payment API in a sample payment module.

Any link or any suggestion code kindly help

1 Answer 1


If you want to create a custom payment method and add your required files there.

Follow this reference module to add the custom payment method

After adding the above module in your Magento app/code directory run below command

php bin/magento setup:upgrade && php bin/magento setup:di:compile && php bin/magento setup:static-content:deploy -f

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.