If you have a UK credit card, phone them up and report the second transaction as unauthorised. It is then their responsibility to refund the money to your account. Unfortunately theTrainline.com are known for having poor customer service, and I very much doubt you will get any compensation.