What protection do you get when you pay by card?
It depends on the card, and the gap between debit and credit is larger than most people realise.
Credit cards generally carry the strongest protection. In the UK, Section 75 of the Consumer Credit Act makes the card issuer jointly liable with the retailer for breach of contract or misrepresentation on purchases between £100 and £30,000. This is a legal right, not a goodwill scheme. It means that if a retailer goes bust or refuses to honour an order, you can claim from your card issuer directly. It applies even if you paid only part of the cost on the card, provided the item's price falls in that range.
Chargeback is the other route, and it is different in kind. It is a card scheme rule rather than a law, available on debit and credit cards, and it works by reversing the transaction through the payment network. Time limits apply — commonly 120 days from the transaction or from when you expected delivery — and it is not guaranteed, since the retailer can contest it.
Debit cards rely on chargeback only. There is no Section 75 equivalent, which is the main reason large purchases are often better placed on a credit card even if the balance is cleared immediately.
Bank transfers have the least protection. Money sent by transfer is gone, and recovery depends on the recipient's bank cooperating. Reimbursement rules for authorised push payment fraud have improved this in some countries, but a transfer is still the weakest option for buying from an unfamiliar seller.
Fraudulent transactions are treated separately from purchase disputes and are generally refundable by the bank unless you were grossly negligent.
Rules vary considerably by country; the principles above are UK-specific in their detail.