BrnCrsh Posted June 27, 2013 Share Posted June 27, 2013 (edited) Hi, I'm trying to make a custom Payment module, and I started by taking the "bankwire" a reference. I've created a new type of "order status" (with the backoffice interface) but how do I use it in my module? In theory I should replace the "PS_OS_BANKWIRE" in the validateOrder, but I don't know how or where to get the proper reference. $bankwire->validateOrder($cart->id, Configuration::get('PS_OS_BANKWIRE'), $total, $bankwire->displayName, NULL, array(), (int)$currency->id, false, $customer->secure_key); $this->module->validateOrder($cart->id, Configuration::get('PS_OS_BANKWIRE'), $total, $this->module->displayName, NULL, $mailVars, (int)$currency->id, false, $customer->secure_key); What should I do to make it use my newly created order status? Thanks in advance, Brain Prestashop Version: 1.5.4.1 Edited June 27, 2013 by BrnCrsh (see edit history) Link to comment Share on other sites More sharing options...
BrnCrsh Posted June 28, 2013 Author Share Posted June 28, 2013 Problem has been solved. Link to comment Share on other sites More sharing options...
rahumateo Posted July 11, 2013 Share Posted July 11, 2013 Hi, how do you create a new type order status in your payment module? 1 Link to comment Share on other sites More sharing options...
mouse1 Posted October 15, 2013 Share Posted October 15, 2013 (edited) Hi BrnCrsh, could you please say how you solved the problem? I'm trying to do the same, I installed a free bankwire3 module from here (http://www.prestashop.com/forums/topic/230706-solvedhow-could-i-clone-the-bankwire-module/). I wanna use it as my second bankwire module, but can't get the order status + correct e-mail to be sent (the original bankwire e-mail is sent). Thank you. Jana SOLVED: Check my post here: http://www.prestashop.com/forums/topic/230706-solvedhow-could-i-clone-the-bankwire-module/?view=findpost&p=1418805 Edited October 15, 2013 by mouse1 (see edit history) Link to comment Share on other sites More sharing options...
PrestaShark Posted May 8, 2015 Share Posted May 8, 2015 Problem has been solved. I like this way of solving this problem... Your solution is top notch! State of the art! 1 2 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