An online payment gateway is a software application that allows businesses to accept and process payments securely over the internet. It serves as a mediator between the customer, the merchant, and the payment processor, ensuring that sensitive payment information is transmitted securely and accurately.