We use the plastic bag trick at the store which works 90% of the time but this sounds like an easier fix -
Fix your credit-card magnetic strip with cellophane tape. Place it over the magnetic strip if your credit card ever stops being read by those machines.