Miroslav P Posted November 6, 2020 Share Posted November 6, 2020 Hi to all, I am working on a payment module but have the following issue. In a process I start order save via validateOrder(), in a secnod process I wait for this order to be saved. But on some servers validateOrder() takes too much time - about 10 seconds, and looks like it does not save the Order at once but in few steps. I found this in a moment from the second process - I checked for the order, there was an order but without a State. My question is - what is the last filed in ps_orders that validateOrder() save, before it complete the process and return true? My second process can not get this result, so I have to check for something else - a field in the table (or element in the Order object I get.) Thanks and Best regards to all! Link to comment Share on other sites More sharing options...
Solver Posted November 6, 2020 Share Posted November 6, 2020 Hello, You can view all logic of validateorder in paymentModule class, so the last things is email sending. Link to comment Share on other sites More sharing options...
Miroslav P Posted November 9, 2020 Author Share Posted November 9, 2020 Unfortunately I can not detect if mail was sent or not. At the moment I just check if the Order status is different than 0, is this good enough, or there is another field to check for? Regards! 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