static CardTypes() { VISA = new CardTypes("visa"); MASTERCARD = new CardTypes("mastercard"); MAESTRO = new CardTypes("maestro"); AMEX = new CardTypes("amex"); JCB = new CardTypes("jcb"); DINERS = new CardTypes("diners"); DISCOVER = new CardTypes("discover"); CHINA_UNION_PAY = new CardTypes("china_union_pay"); UNKNOWN = new CardTypes("unknown", true); }
public Payment.Filter ByCardType(Payment.CardTypes cardType) { this.cardType = cardType.ToString(); return(this); }