Ejemplo n.º 1
0
 public Order(string email,Basket basket)
 {
     Email = email;
     Basket = basket;
     Payed = false;
     Created = DateTime.Now;
 }
Ejemplo n.º 2
0
 public Basket CreateBasket()
 {
     var publicId = Guid.NewGuid();
     var basket = new Basket(publicId);
     Session["PublicId"] = publicId;
     _documentSession.Store(basket);
     return basket;
 }
Ejemplo n.º 3
0
 public PaymentModel(Basket basket, string buyerEmail, long orderId)
 {
     SellerEmail = "*****@*****.**";
     Description = "Varor från EP-Racing";
     Cost = basket.Total - basket.Shipping;
     ExtraCost = basket.Shipping;
     OkUrl = "http://www.epracing.se/Checkout/Receipt/" + orderId;
     AgentId = 12993;
     Basket = basket;
     BuyerEmail = buyerEmail;
     GuaranteeOffered = 1;
     RefNr = orderId;
     Key = "d65bfc8d-9655-4536-95a6-41b5d2c11f7a";
 }