AI and machine learning enhance online payment systems by improving fraud detection, offering personalized services, and automating customer service, thereby improving efficiency and customer satisfaction.