In the Greater Copenhagen area, you can transfer freely between buses, Metro, trains and the yellow "harbour bus" using the same tickets and discount cards.
Ordinary basic tickets can be purchased from vending machines at stations, ticket offices and on buses from the driver.
Alternatively, you can purchase a CPHCARD which is valid for any travel within the Greater Copenhagen area. There are two types: valid 24 hours or valid 72 hours.