예제 #1
0
        public static FakePayment CreateEmptyPayment()
        {
            var payment = new FakePayment
            {
                PaymentId = ++_counter,
            };

            return(payment);
        }
예제 #2
0
        public static FakeOrderForm CreateOrderForm()
        {
            var orderForm = new FakeOrderForm();

            orderForm.Shipments.Add(FakeShipment.CreateShipment());
            orderForm.Payments.Add(FakePayment.CreatePayment());

            return(orderForm);
        }
예제 #3
0
        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);
        }
예제 #4
0
 public IPayment CreatePayment(IOrderGroup orderGroup, Type paymentType)
 {
     return(FakePayment.CreateEmptyPayment());
 }