dunozf Posted August 1, 2014 Share Posted August 1, 2014 Hi everyone, I'm working on a new payment module with redirect to the payment gateway. After making the payment, I will be redirected back to the store and from payment gateway only get data such as transaction price, transaction paid, created, canceled. I do not know how to restore and save order and change its status. Please advise. Thanks. Link to comment Share on other sites More sharing options...
bellini13 Posted August 1, 2014 Share Posted August 1, 2014 just review the validation.php file from the bankwire module, and you should get an idea of what needs to occur. ideally the payment gateway should expose a service so that your module can verify the transaction, instead of just trusting the requestor is the payment gateway (and not just someone who knows your URL). Link to comment Share on other sites More sharing options...
dunozf Posted August 25, 2014 Author Share Posted August 25, 2014 thanks for your advice. I looked at the module Bankwire, and also some other payment modules, but I still have a problem after payment to save order and change its status. I made two versions of the module. 1. the first version is based on the module Bankwire, I get the error: Fatal error: Class 'ModuleFrontController' not found in /www/u/n/u51904/public_html/ps/modules/wplatbabw/controllers/front/validation.php on line 28 2. the second version is based on Moneybookers module, I get the error: Notice: Undefined index: cart_id in /www/u/n/u51904/public_html/ps/modules/wplatba/validation.php on line 79 Could you help me? Thanks Link to comment Share on other sites More sharing options...
bellini13 Posted August 25, 2014 Share Posted August 25, 2014 (edited) Can't help without seeing the code Edited August 25, 2014 by bellini13 (see edit history) Link to comment Share on other sites More sharing options...
dunozf Posted August 25, 2014 Author Share Posted August 25, 2014 Where I can send you the code? Link to comment Share on other sites More sharing options...
bellini13 Posted August 25, 2014 Share Posted August 25, 2014 just post the relevant code on the forum, i don't need to see the entire module Link to comment Share on other sites More sharing options...
dunozf Posted August 25, 2014 Author Share Posted August 25, 2014 ok, I send the relevant files. validation.php is based on module Bankwire, I get the error: Fatal error: Class 'ModuleFrontController' not found in /www/u/n/u51904/public_html/ps/modules/wplatbabw/controllers/front/validation.php on line 28 . validation.php Link to comment Share on other sites More sharing options...
bellini13 Posted August 25, 2014 Share Posted August 25, 2014 and what version of Prestashop are you trying to use this in? Link to comment Share on other sites More sharing options...
dunozf Posted August 26, 2014 Author Share Posted August 26, 2014 I use the latest version 1.6.0.9 Link to comment Share on other sites More sharing options...
bellini13 Posted August 26, 2014 Share Posted August 26, 2014 odd, not sure why it would do that. I guess I would need to see the entire module to help you trouble shoot it further. But I do charge for that type of personalized service. Feel free to send me a PM or contact me via my website if you are interested Link to comment Share on other sites More sharing options...
dunozf Posted August 29, 2014 Author Share Posted August 29, 2014 I sent you an email from your website, do you got it? Have you looked at it? 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