the store order summary on the confirm page will store the order id in a session variable.
open the confirm page and double click on the ecart Store Order Summary behavior to make note of the session variable that will be created.
you can use this session for performing the update on the success page.