Barcelona is generally very card-friendly, and you can use debit or credit cards at most stores, restaurants, and hotels. However, it's still useful to have some cash on hand for small expenses and emergencies.