The deal will require the payments companies to lower the so-called swipe fees they charge sellers over the next five years. It will also allow merchants to charge different prices to consumers based on which credit card they use.