Closed fkomaralp closed 4 years ago
Thanks for opening this issue! We will help you to keep its state consistent
Hello,
We use GitHub issues only to discuss about bugs and new features in the PrestaShop project. If you have questions about using PrestaShop or third-party modules, or if you need help with your shop, please consider one of our support plans.
Alternatively, you can also ask for help in the community forums or in the public Slack channel.
Thank you
Hi, I'm writing a prestashop offline payment module for version 1.7 > . Module is using 4 front controllers.
First payment.php is making a creadit card form for the customer. validation.php Is making requests for a bank. Working with payment.php controller file. There is two controller is triggering by the bank. OnError.php and OnSuccess.php. My problem is on the OnSuccess.php
OnSuccess.php file is like;
If bank is returns with different result is like "14" (not 00), I want to display to customer an error message. Everything is normal. But sometimes OnSuccess controller is deleting customer's cart and loging out automaticallly. This is a bug or am I wrong on my code? Bank is making a POST request for this page for giving an payment result answer.