it sounds you are using the Session ID as the order number.
on the confirm page, there is a Store order Summary behavior, this stores the id of the record created for the order in a session variable, you can use this session variables value as the order ID if you like. you should be able to access the session on the bindings panel.