Ejemplo n.º 1
0
        public CreditCardPaymentService GetPaymentService()
        {
            var acquiringBank = _dataOperations.GetAcquiringBank();

            return(acquiringBank switch
            {
                EAcquiringBanks.HSBCBank => new HSBCService(_configuration),
                EAcquiringBanks.INGBank => new INGService(_configuration),
                _ => throw new Exception("Acquiring bank info not found!"),
            });