The banks and processors that sign up merchants to accept cards and other payments, supply terminals and gateways, guarantee the merchant's transactions to the card networks, and pay merchants their takings minus fees.
Payment processors are one player in the banking industry, and an industry of their own, with their own suppliers, customers, software, regulators, and money flows. This full map is on the roadmap.
Meanwhile: how payment processors fit into banking