Example #1
0
        private IPaymentGatewayService GetGatewayService(Card card)
        {
            IPaymentGatewayService PaymentGatewayService = null;
            string       cardbranc = card.CardBrand;
            CardTypeEnum cardType  = (CardTypeEnum)card.CardType;

            if (cardType == CardTypeEnum.Credit)
            {
                PaymentGatewayService = BankFactory.GetPaymentGateway(BankFactory.BANCO_X);
            }
            return(PaymentGatewayService);
        }