You can also buy a ticket at the machines at the station. They accept cash, debit, and credit cards.
Download the app and purchase from there. It's easy. Once you get on the train, you activate the ticket. The app has all the schedules and prices.
Thanks! Your answer is awaiting moderation.