Ejemplo n.º 1
0
        public string GetCardNumber(bool validation = true)
        {
            var cardNumber = cardNumberTextView.GetText().Replace(" ", "");

            if (!ValidationHelper.CanProcess(cardNumber) && validation == true)
            {
                throw new ArgumentException("Credit card number");
            }
            else
            {
                return(cardNumber);
            }
        }