One way to buy a ticket is by using the 'touch in, touch out' machine. Here you can find the machine (shown in Figure 1), and simply tap your contactless card or phone with built in contactless payment at the platform that you get on the tram at. You must tap this before getting on the tram.