You can purchase tickets for the Edinburgh Park and Ride tram to the airport from the ticket vending machines located at the tram stops. You can also purchase tickets online or through the Transport for Edinburgh app.