A man is getting on an old-fashioned tram and paying for his ticket using a smartphone app.