A payment gateway is the software layer that takes card or wallet credentials from your checkout, encrypts them, and passes the transaction to the systems that ask the cardholder’s bank for a decision. It answers in about a second. What it does not do on its own is move money into your bank account.