Kurejito.Gateways.SagePay.VspDirect.SagePayPaymentGateway.TranslateCardType C# (CSharp) Method

TranslateCardType() private method

private TranslateCardType ( CardType cardType ) : string
cardType CardType
return string
        private string TranslateCardType(CardType cardType)
        {
            switch (cardType) {
                case CardType.MasterCard: return ("MC");
                case CardType.Visa: return ("VISA");
            }
            throw (new NotImplementedException("Only Visa and Mastercard currently supported!"));
        }