Invalid template file: 'RW_CustomPaymentMethod::info/custompaymentmethod.phtml' in module: 'RW_CustomPaymentMethod' block's name: 'info\custompaymentmethod_0'

Should we declare this template somewhere else too. And also in view folder, i have only adminhtml folder no frontend folder as this payment method has to be only from admin panel.

2 Answers 2


You have to create custompaymentmethod.phtml at frontend folder.As you have trying to build for both and frontend.

  • No, i don't want the payment method to be used for customer from storefront. Still should i create frontend folder?
    – sahana
    Sep 20, 2018 at 13:23
  • yes, you have to use
    – Amit Bera
    Sep 20, 2018 at 13:24
  • How do I store this value in a database?
    – sahana
    Sep 21, 2018 at 4:15

Kindly create the phtml file into below location.


Note : if you do not want to offer customer for frontend, then you can leave this phtml file blank.

Your Answer

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

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