I've been searching for more than 2 hours on a function that updates the cart status. I've been told to look for update order shipping status but I can't find it in the includes directory.

Does anyone have an idea where this function resides? I suspect its in one of the classes because after a payment is received it has to set the status to Processing...

Any help is greatly appreciated.