niksac Posted March 2, 2015 Share Posted March 2, 2015 (edited) Hi, I need to implement a simple custom payment method for my shop, read through the module developement guide and started by modifying the original bankwire module. I use PS 1.6.0.13 with disabled cache, disabled smarty cache and enforced smarty compiling.My modified test module works, it can be enabled and used in the frontend just as i want to but it does not get listed in the backoffice under active payment methods. Any idea where i could've gone wrong with that? Thanks in advance Nik invoice.zip Edited March 2, 2015 by niksac (see edit history) Link to comment Share on other sites More sharing options...
Tuni-Soft Posted March 3, 2015 Share Posted March 3, 2015 Maybe you didn't enable it in "Modules -> Payment" ? Link to comment Share on other sites More sharing options...
niksac Posted March 3, 2015 Author Share Posted March 3, 2015 thats exactly where it does not appear. It's selectable and usable for customers in the front office and works as excepted. But it doesnt show at Modules->Payment. Link to comment Share on other sites More sharing options...
Tuni-Soft Posted March 3, 2015 Share Posted March 3, 2015 Looks like payment modules are filtered using this list http://api.prestashop.com/xml/tab_modules_list.xml That's why it doesn't show up I had to inspect the file controllers/admin/AdminPaymentController.php method: renderModulesList, you will see a variable there I added this line $this->filter_modules_list[] = 'invoice'; and it worked Link to comment Share on other sites More sharing options...
niksac Posted March 3, 2015 Author Share Posted March 3, 2015 Ah okay - so this is pulled from remote site? Link to comment Share on other sites More sharing options...
Tuni-Soft Posted March 3, 2015 Share Posted March 3, 2015 yes, i guess it's a security measure to only allow recognized payment modules Link to comment Share on other sites More sharing options...
niksac Posted March 3, 2015 Author Share Posted March 3, 2015 If it is, I think it's the wrong way to go - if someone adds malicious module and approves the "not verified" notice during install the module will fron then on work as payment module in the frontend (and do its harm there). I worst case the administrator wont even be aware that the payment method is active as it is not listed under payment methods. My payment method list now sais "no payment methods available for your country" while my custom method works fine in the front end.Anyways thanks for looking it up in the code for me!! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now