When a customer makes a purchase on your Magento store, their payment information is automatically received and encoded by the payment gateway. This data is then presented to their issuing bank for authorization. Once approved, the money is sent to the payment gateway and then deposited into your company's bank account.