The order details are stored on the Confirm page after the transaction goes through the payment gateway, if you are posting the confirm page to the Secpay server though, you will need to add functionality on the cal back script that secpay redirects to after the transaction is successful to capture the order information.
If you own eCart, you can use the Store order summary and store order details server behaviors on the call back script to accomplish this.