If you have a Trainline discount code, you will need to redeem it just before the payment. Firstly, please make sure that when trying to use the code you are clicking on the link directing you to use your discount. Secondly, check that the booking you are trying to make does meet the criteria shown in the email...