The information should be stored in a database.
depending on how you have configured checkout, the information should probably be stored in a database on the confirm.php page.
Just be ware: In most cases, it is illegal to store credit card information in a database. You should only be storing the customers billing and shipping address and the items they purchased.
credit card numbers should also not be transited through email.