Design a high-throughput payment gateway that integrates with both internal legacy systems and external vendor APIs for Discover.