You can buy bus tickets and buy/recharge travel cards paying directly to the bus driver or at the ticket vending machines that are located at 19 bus stops (route 4). You pay 2 euros for the card and top it up with 5, 10, 20 euros. When you leave Granada, 2 euros are not refunded.