core: Implement the callback for order to complete