Nowadays it is no longer possible to buy a visa at the airport. If you want to enter Turkey, you must apply for an e-visa online in advance or with a help of your agency.