Jump to content

How to know when new Order was saved


Miroslav P

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...