A payment gateway is an online technology used by merchants to accept payments online. Payment gateways cannot work offline.