Paytm interview question

design analytics library which can support multiple providers without much changes