In eCommerce, the payment gateway collects, transfers, and authorizes customer payment information in real-time to a merchant’s bank account, where the transaction itself is then processed. It also protects the customer’s credit card details by encrypting sensitive information and also ensures fraud protection.