You should be able to buy a ticket on the train after boarding, but not if:
- deception is possible;
- you needed to make a reservation;
- there are commercial reasons (e.g. promotion ticket only via internet).
If there is no ticket office and no machine, you must be informed:
- how you can purchase a ticket by telephone, via the internet or on the train;
- where ticket offices and machines are.