More merchants are giving discounts to consumers who pay with cash, or putting surcharges on credit card purchases.