public Response CreatePaymentProfile(IProfileAttributes profile, IAddressAttributes billingAddress, ICreditCardAttributes creditCardInfo) { var paymentProfileAttributes = new Dictionary<string, object>(); paymentProfileAttributes.Add("profileAttributes", profile); paymentProfileAttributes.Add("billingAddressAttributes", billingAddress); paymentProfileAttributes.Add("creditCardAttributes", creditCardInfo); return GetResponse(paymentProfileAttributes, "createCustomerPaymentProfileRequest.spark", new CreateCustomerPaymentProfileParser()); }
public void Setup() { var random = new Random(); _profileAttributes = ObjectMother.GetMockProfileAttributes(x => { x.CustomerId = random.Next().ToString(); x.Email = "*****@*****.**"; }); _addressAttributes = ObjectMother.GetMockAddressAttributes(x => { x.FirstName = "Rafi"; x.LastName = "Sk"; x.Address = "Rajendranagar"; x.City = "Hyderabad"; x.State = "AP"; x.Zip = "500048"; x.Company = "cosmicvent"; x.Country = "India"; }); _creditCardAttributes = ObjectMother.GetMockCreditCardAttributes(x => { x.CardNumber = "4111111111111111"; x.ExpirationDate = DateTime.Now.AddMonths(1).ToString("yyyy-MM"); }); _paymentProfileDictionary = new Dictionary<string, object>(); _paymentProfileDictionary.Add("profileAttributes", _profileAttributes); _paymentProfileDictionary.Add("billingAddressAttributes", _addressAttributes); _paymentProfileDictionary.Add("creditCardAttributes", _creditCardAttributes); }
public void Setup() { var random = new Random(); _profileAttributes = ObjectMother.GetMockProfileAttributes(x => { x.CustomerId = random.Next().ToString(); x.Email = "*****@*****.**"; }); _addressAttributes = ObjectMother.GetMockAddressAttributes(x => { x.FirstName = "Rafi"; x.LastName = "Sk"; x.Address = "Rajendranagar"; x.City = "Hyderabad"; x.State = "AP"; x.Zip = "500048"; x.Company = "cosmicvent"; x.Country = "India"; }); _creditCardAttributes = ObjectMother.GetMockCreditCardAttributes(x => { x.CardNumber = "4111111111111111"; x.ExpirationDate = DateTime.Now.AddMonths(1).ToString("yyyy-MM"); }); _paymentProfileAttributes = ObjectMother.GetMockPaymentProfileAttributes(); _order = ObjectMother.GetMockOrder(x => { x.Amount = random.Next(1, 5000); x.Description = "amount of" + random.Next(1, 5000); }); _transaction = ObjectMother.GetMockTransaction(x => { x.Type = TransactionType.AuthCapture; }); }
public void Setup() { var random = new Random(); _profileAttributes = ObjectMother.GetMockProfileAttributes(x => { x.CustomerId = random.Next().ToString(); x.Email = "*****@*****.**"; }); _addressAttributes = ObjectMother.GetMockAddressAttributes(x => { x.FirstName = "Rafi"; x.LastName = "Sk"; x.Address = "Rajendranagar"; x.City = "Hyderabad"; x.State = "AP"; x.Zip = "500048"; x.Company = "cosmicvent"; x.Country = "India"; }); _creditCardAttributes = ObjectMother.GetMockCreditCardAttributes(x => { x.CardNumber = "4111111111111111"; x.ExpirationDate = DateTime.Now.AddMonths(1).ToString("yyyy-MM"); }); _paymentProfileAttributes = ObjectMother.GetMockPaymentProfileAttributes(); _order = ObjectMother.GetMockOrder(x => { x.Amount = random.Next(1, 5000); x.Description = "amount of" + random.Next(1, 5000); }); // //var next = random.Next(1, 5000); //_transaction = ObjectMother.GetMockTransaction(x => //{ // x.Amount = next; // x.Description = "Transaction" + next; // x.InVoiceNumber = "IN" + next; // x.PurchaseOrderNumber = "PO" + next; // x.RecurringBilling = false; // x.TaxExempt = false; //}); }
public ISubscription UpdateSubscriptionCreditCard(int SubscriptionID, ICreditCardAttributes CreditCardAttributes) { throw new NotImplementedException(); }
public ISubscription CreateSubscriptionUsingCoupon(string ProductHandle, string SystemID, ICreditCardAttributes CreditCardAttributes, string CouponCode) { throw new NotImplementedException(); }
public ISubscription CreateSubscriptionUsingCoupon(string ProductHandle, ICustomerAttributes CustomerAttributes, ICreditCardAttributes CreditCardAttributes, string CouponCode, Dictionary<int, string> ComponentsWithQuantity) { throw new NotImplementedException(); }
public ISubscription CreateSubscriptionUsingCoupon(string ProductHandle, ICustomerAttributes CustomerAttributes, ICreditCardAttributes CreditCardAttributes, string CouponCode, int ComponentID, int AllocatedQuantity) { throw new NotImplementedException(); }
public ISubscription CreateSubscription(string ProductHandle, int ChargifyID, ICreditCardAttributes CreditCardAttributes) { throw new NotImplementedException(); }
public ISubscription CreateSubscription(string ProductHandle, ICustomerAttributes CustomerAttributes, ICreditCardAttributes CreditCardAttributes, DateTime NextBillingAt) { throw new NotImplementedException(); }