public UpdateCustomerRequest() { CustomerId = string.Empty; PostalCode = string.Empty; PlanId = string.Empty; CreditCard = new CardData(); }
public BillingAccount() { Id = 0; Email = string.Empty; CreditCard = new CardData(); BillingZipCode = string.Empty; }
public CreateCustomerRequest() { Email = string.Empty; Name = string.Empty; PostalCode = string.Empty; PlanId = string.Empty; CreditCard = new CardData(); }
public void LoadFromCardData(MerchantTribe.Payment.CardData card) { ExpirationMonth = card.ExpirationMonth; ExpirationYear = card.ExpirationYear; CardHolderName = card.CardHolderName; if (card.CardNumber.Trim().Length >= 4) { CardNumber = "****-****-****-" + card.CardNumberLast4Digits; } //if (op.CustomPropertyExists("bvsoftware", "issuenumber")) { // ccissuenumber.Text = op.CustomPropertyGet("bvsoftware", "issuenumber"); //} }
public Transaction() { Id = 0; AccountId = 0; TimeStampUtc = DateTime.UtcNow; Action = ActionType.Uknown; Amount = 0m; CreditCard = new CardData(); Success = false; Voided = false; RefNum1 = string.Empty; RefNum2 = string.Empty; InvoiceReference = string.Empty; Messages = string.Empty; ExternalOrderNumber = string.Empty; LinkedToTransaction = 0; }
public Transaction() { Id = new Guid(); Amount = 0m; Action = ActionType.Uknown; Card = new CardData(); Customer = new CustomerData(); PreviousTransactionNumber = string.Empty; PreviousTransactionAuthCode = string.Empty; MerchantDescription = string.Empty; MerchantInvoiceNumber = string.Empty; Result = new ResultData(); CheckNumber = string.Empty; PurchaseOrderNumber = string.Empty; GiftCardNumber = string.Empty; CompanyAccountNumber = string.Empty; RewardPoints = 0; }
public MerchantTribe.Payment.CardData GetCardData() { MerchantTribe.Payment.CardData result = new MerchantTribe.Payment.CardData(); result.CardHolderName = CardHolderName; if (CardNumber.StartsWith("*")) { result.CardNumber = ""; } else { result.CardNumber = CardNumber; } result.SecurityCode = SecurityCode; result.ExpirationMonth = ExpirationMonth; result.ExpirationYear = ExpirationYear; return(result); }
public OrderTransaction() { Id = System.Guid.NewGuid(); StoreId = 0; OrderId = string.Empty; OrderNumber = string.Empty; TimeStampUtc = DateTime.UtcNow; Action = ActionType.Uknown; Amount = 0m; CreditCard = new CardData(); Success = false; Voided = false; RefNum1 = string.Empty; RefNum2 = string.Empty; LinkedToTransaction = string.Empty; Messages = string.Empty; PurchaseOrderNumber = string.Empty; GiftCardNumber = string.Empty; CheckNumber = string.Empty; CompanyAccountNumber = string.Empty; }
public MerchantTribe.Payment.CardData GetCardData() { MerchantTribe.Payment.CardData result = new MerchantTribe.Payment.CardData(); result.CardHolderName = CardHolderName; if (CardNumber.StartsWith("*")) { result.CardNumber = ""; } else { result.CardNumber = CardNumber; } result.SecurityCode = SecurityCode; result.ExpirationMonth = ExpirationMonth; result.ExpirationYear = ExpirationYear; return result; }
// Credit Cards public bool CreditCardAddInfo(CardData card, decimal amount) { Transaction t = o.GetEmptyTransaction(); t.Amount = EnsurePositiveAmount(amount); t.Card = card; t.Action = ActionType.CreditCardInfo; OrderTransaction ot = new OrderTransaction(t); ot.Success = true; return svc.AddPaymentTransactionToOrder(o, ot, this.MTApp); }