The ability to tack on an extra fee to the receipts of consumers who pay with credit cards was one of the tools merchants gained as part of a deal reached in July intended to end years of litigation against the card networks and banks that issue credit cards.