The three layers and who decides what
The gateway is software. It takes card details at checkout, stores them as tokens and sends each transaction on to a processor. It does not approve your business and it does not hold your money.
The acquirer is the licensed institution with Visa and Mastercard membership. It underwrites your business, carries the chargeback risk, sets your reserve and decides whether you keep processing. When people say a payment provider closed their account, it is almost always the acquirer that made the call.
The settlement bank is where the acquirer pays your net proceeds. It runs its own compliance review, and a bank that is uncomfortable with your sector can close the account even while the acquiring is perfectly healthy. All three layers need to accept your business model independently.