Iranrail is the biggest and the best Iranian rail website. You can book online with them, paying with Visa, Mastercard and Paypal, but understand it is not truly online booking. A travel agent still needs to book the train ticket for you, scan and e-mail it to you.