“Du musst eine Fahrkarte kaufen.” means “You have to buy a ticket.” The action kaufen comes at the end.