update order and purchase