If you don’t buy tickets in advance you’ll need to buy them at the train station using a ticket kiosk. It’s not hard to do once you get the hang of it but the first time is sort of intimidating. There can be a long line of people behind you, just take your time and don’t feel rushed.
About Santorini Dave