You can buy one using either cash or your credit/debit card. Although there are a few manned ticket offices in London, the likelihood is that you will buy an Oyster card from a ticket machine. You can also buy them in a few newsagents, which will clearly display a sign in their window.