To buy paid apps or in-app items, link a payment method to your Apple ID. Then, any costs will be charged to that method.