public CreditCardVaultSaleRequest(string id, string key, Guid vaultGuid, string nameOnCard, BillingAddress billingAddress, decimal amount)
     : base(BASE_ADDRESS, "VAULT_BANKCARD_SALE", id, key)
 {
     Data["GUID"] = vaultGuid.ToString().Replace("-", "");
     Data["T_CUSTOMER_NUMBER"] = string.Empty;
     Data["T_AMT"]             = amount.ToString("n2");
     Data["C_NAME"]            = nameOnCard;
     billingAddress.SetBillingAddressData(Data);
 }
Ejemplo n.º 2
0
 public UpdateCreditCardVaultRequest(string userName, string password, string vaultId, string expiration, BillingAddress billingAddress)
     : this(userName, password, vaultId)
 {
     Data["ccexp"] = expiration;
     if (billingAddress != null)
     {
         billingAddress.SetBillingAddressData(Data);
     }
 }
Ejemplo n.º 3
0
 public AchVaultSaleRequest(string id, string key, string originatorId, Guid vaultGuid, string firstName, string middleInitial, string lastName, string suffix, BillingAddress billingAddress, decimal amount)
     : base(BASE_ADDRESS, "VIRTUAL_CHECK_PPD_SALE", id, key)
 {
     Data["C_ORIGINATOR_ID"]  = originatorId;
     Data["GUID"]             = vaultGuid.ToString().Replace("-", "");
     Data["C_FIRST_NAME"]     = firstName;
     Data["C_MIDDLE_INITIAL"] = middleInitial;
     Data["C_LAST_NAME"]      = lastName;
     Data["C_SUFFIX"]         = suffix;
     Data["T_AMT"]            = amount.ToString("n2");
     billingAddress.SetBillingAddressData(Data);
 }
Ejemplo n.º 4
0
 public UpdateAchVaultRequest(string userName, string password, string vaultId, string nameOnAccount, BillingAddress billingAddress)
     : this(userName, password, vaultId)
 {
     Data["checkname"] = nameOnAccount;
     billingAddress.SetBillingAddressData(Data);
 }