One moment, I have to slam on the brakes on this sentence:
you should never store customers credit card details in your database.
Ok that said, to have an order details page, or a users detail page, the user must first be logged in.
see the "Applying Register/Login to your checkout", "Automatically populating checkout fields" and "Creating an Order History page" tutorials on the eCart support page:
ecart/