Always use a credit card for purchases (and pay it off completely every month!), then it's the credit card company's problem. (If you use a debit card then the money is taken directly from your account and you are in the same unfortunate situation as this person was.)