Exemplo n.º 1
0
 /// <summary>
 /// Credit card information.
 /// </summary>
 /// <param name="cardToken">Saved Card Token</param>
 /// <param name="securityCode">Card's Secutiry Code</param>
 /// <param name="cardBrand">Card Brand</param>
 public CreditCard(string cardToken,
                   string securityCode,
                   CardBrand cardBrand)
 {
     CardToken    = cardToken;
     SecurityCode = securityCode;
     Brand        = cardBrand.ToDescription();
 }
Exemplo n.º 2
0
 /// <summary>
 /// Debit card information.
 /// </summary>
 /// <param name="cardNumber">Card Number</param>
 /// <param name="holder">Card's Holder Name</param>
 /// <param name="expirationDate">Card's Expiration Date</param>
 /// <param name="securityCode">Card's Secutiry Code</param>
 /// <param name="cardBrand">Card Brand</param>
 public DebitCard(string cardNumber,
                  string holder,
                  CardExpiration expirationDate,
                  string securityCode,
                  CardBrand cardBrand)
 {
     CardNumber   = cardNumber.ToNumbers();
     Holder       = holder;
     _expiration  = expirationDate;
     SecurityCode = securityCode;
     Brand        = cardBrand.ToDescription();
 }
Exemplo n.º 3
0
 /// <summary>
 /// Credit card information.
 /// </summary>
 /// <param name="customerName">Customer Name</param>
 /// <param name="cardNumber">Card Number</param>
 /// <param name="holder">Card's Holder Name</param>
 /// <param name="expirationDate">Card's Expiration Date</param>
 /// <param name="cardBrand">Card Brand</param>
 public CreditCardRequest(string customerName,
                          string cardNumber,
                          string holder,
                          CardExpiration expirationDate,
                          CardBrand cardBrand)
 {
     CustomerName = customerName;
     CardNumber   = cardNumber.ToNumbers();
     Holder       = holder;
     _expiration  = expirationDate;
     Brand        = cardBrand.ToDescription();
 }
Exemplo n.º 4
0
 /// <summary>
 /// Credit card information.
 /// </summary>
 /// <param name="cardNumber">Card Number</param>
 /// <param name="holder">Card's Holder Name</param>
 /// <param name="expirationDate">Card's Expiration Date</param>
 /// <param name="securityCode">Card's Secutiry Code</param>
 /// <param name="cardBrand">Card Brand</param>
 /// <param name="saveCard">Save Card</param>
 public CreditCard(string cardNumber,
                   string holder,
                   CardExpiration expirationDate,
                   string securityCode,
                   CardBrand cardBrand,
                   bool saveCard = false)
 {
     CardNumber   = cardNumber.ToNumbers();
     Holder       = holder;
     _expiration  = expirationDate;
     SecurityCode = securityCode;
     Brand        = cardBrand.ToDescription();
     SaveCard     = saveCard;
 }