Beispiel #1
0
        public OrderStatus Checkout(Cart cart, Address address, IPayment cardPayment)
        {
            bool PaymentStatus = false;

            this.cart     = cart;
            PaymentStatus = cardPayment.GetPayment(this.OrderPrice);

            if (PaymentStatus == true)
            {
                OrderStatus = OrderStatus.Confirmed;
            }
            else
            {
                OrderStatus = OrderStatus.Cancelled;
            }

            return(OrderStatus);
        }
 public List <Model.Common.Payment> GetPayment()
 {
     return(_IPayment.GetPayment());
 }