public PaymentsTestData UserCardTokenDelete() { var createUser = new UserCreate { AccountMasterExternalIdentifier = "5372226", Email = "*****@*****.**" }; var newUser = processor.CreateUserLogin(createUser).Result; var createCardToken = new CardTokenCreate { CompanyName = "QA Softtek", AddressAddressLine1 = "Walnut Street", AddressAddressLine2 = "10", AddressStateProvinceRegion = "CO", AddressCity = "Denver", AddressCountry = "US", AddressPostal = "12345", CardType = "VISA", CustomerId = newUser.Contents.Identifier.ToString(), ExpirationMonth = 12, ExpirationYear = 22, NameOnCard = "Test Card", Email = createUser.Email, LastFourDigits = "1111", IsReadonly = false, setAsDefault = false, TokenId = "trash" }; newUser.AddCardToken(processor.sMember, createCardToken); var viewData = new PaymentsTestData { Email = createUser.Email, Password = "******", Level = "user", PaymentOption = new PaymentOptionModel { LastFourDigits = createCardToken.LastFourDigits, ExpirationMont = createCardToken.ExpirationMonth.ToString(), ExpirationYear = createCardToken.ExpirationYear.ToString() } }; return(viewData); }
public PaymentsTestData UserHasPreviouslyStoredIntlAddress() { var createUser = new UserCreate { AccountMasterExternalIdentifier = "5372226", Email = "*****@*****.**" }; var newUser = processor.CreateUserLogin(createUser).Result; var createCardToken = new CardTokenCreate { CompanyName = "UABC", AddressAddressLine1 = "carretera transpeninsular", AddressAddressLine2 = "", AddressStateProvinceRegion = "CO", AddressCity = "Ensenada", AddressCountry = "MX", AddressPostal = "22860", CardType = "VISA", CustomerId = newUser.Contents.Identifier.ToString(), ExpirationMonth = 12, ExpirationYear = 26, NameOnCard = "Test Card", Email = createUser.Email, LastFourDigits = "1111", IsReadonly = false, setAsDefault = false }; newUser.AddCardToken(processor.sMember, createCardToken); var viewData = new PaymentsTestData { Email = createUser.Email, Password = "******", PaymentOption = new PaymentOptionModel { LastFourDigits = createCardToken.LastFourDigits, ExpirationMont = createCardToken.ExpirationMonth.ToString(), ExpirationYear = createCardToken.ExpirationYear.ToString() } }; return(viewData); }
public PaymentsTestData UserPrevStoredAddressAdd() { var createUser = new UserCreate { AccountMasterExternalIdentifier = "5372226", Email = "*****@*****.**" }; var newUser = processor.CreateUserLogin(createUser).Result; var createAddress = new AddressCreate { AddressLine1 = "Walnut Street", AddressLine2 = "07", Name = "QA Softtek", StateProvinceRegion = "CO", City = "Denver", Country = "US", Postal = "12345", IsInternational = false, setAsDefault = false, IsAccountMasterLevel = false }; newUser.AddAddress(processor.sMember, createAddress); var viewData = new PaymentsTestData { Email = createUser.Email, Password = "******", Level = "user", PreviouslyStoredAddress = new AddressModel { apartment = createAddress.AddressLine2, city = createAddress.City, country = createAddress.Country, postal = createAddress.Postal, state = createAddress.StateProvinceRegion, street = createAddress.AddressLine1 } }; return(viewData); }
public PaymentsTestData UserCardTokenAdd() { var createUser = new UserCreate { AccountMasterExternalIdentifier = "5372226", Email = "*****@*****.**" }; var newUser = processor.CreateUserLogin(createUser).Result; var viewData = new PaymentsTestData { Email = createUser.Email, Password = "******", Level = "user" }; return(viewData); }
public PaymentsTestData UserAccountManyItems() { var createUser = new UserCreate { AccountMasterExternalIdentifier = "5372226", Email = "*****@*****.**" }; var newUser = processor.CreateUserLogin(createUser).Result; for (int i = 0; i <= 28; i++) { //add user level payments newUser.AddCardToken(processor.sMember, new CardTokenCreate { CompanyName = "QA Softtek " + i, AddressAddressLine1 = "Walnut Street ", AddressAddressLine2 = i.ToString(), AddressStateProvinceRegion = "CO", AddressCity = "Denver", AddressCountry = "US", AddressPostal = "23480", CardType = "VISA", CustomerId = newUser.Contents.Identifier.ToString(), ExpirationMonth = 12, ExpirationYear = 25, NameOnCard = "Test Card", Email = createUser.Email, LastFourDigits = "1111", IsReadonly = false, setAsDefault = false, isAccountMasterLevel = false }); //add account level payments newUser.AddCardToken(processor.sMember, new CardTokenCreate { CompanyName = "QA Softtek " + i, AddressAddressLine1 = "Walnut Street ", AddressAddressLine2 = i.ToString(), AddressStateProvinceRegion = "CO", AddressCity = "Denver", AddressCountry = "US", AddressPostal = "23480", CardType = "VISA", CustomerId = newUser.Contents.Identifier.ToString(), ExpirationMonth = 12, ExpirationYear = 25, NameOnCard = "Test Card " + i, Email = createUser.Email, LastFourDigits = "1111", IsReadonly = false, setAsDefault = false, isAccountMasterLevel = true }); } var data = new PaymentsTestData { Email = createUser.Email, Password = "******" }; return(data); }