CRED interview question

System Design Round: Design a payment gateway API