The grocery chain is settling a $7.4 million lawsuit over claims that receipts showed too much card information.