public static FakePayment CreateEmptyPayment() { var payment = new FakePayment { PaymentId = ++_counter, }; return(payment); }
public static FakeOrderForm CreateOrderForm() { var orderForm = new FakeOrderForm(); orderForm.Shipments.Add(FakeShipment.CreateShipment()); orderForm.Payments.Add(FakePayment.CreatePayment()); return(orderForm); }
public static FakePayment CreatePayment() { var payment = new FakePayment { PaymentId = ++_counter, PaymentMethodId = Guid.Parse("ef6a5e4a-de87-4749-bd26-38c41badee6a"), PaymentMethodName = "GenericCreditCard", TransactionType = "Authorization", Amount = 50, CustomerName = "Cruz Graham", ImplementationClass = "Mediachase.Commerce.Orders.CreditCardPayment,Mediachase.Commerce", Status = "Processed", BillingAddress = FakeOrderAddress.CreateOrderAddress(), AuthorizationCode = "12345", TransactionID = "54321", ValidationCode = "09876543" }; return(payment); }
public IPayment CreatePayment(IOrderGroup orderGroup, Type paymentType) { return(FakePayment.CreateEmptyPayment()); }