How to create Transaction history

Already solved plenty in case

just customonise the code as per your need, this is just a sample guide