Beispiel #1
0
 public SspOrder(SspCart _cart)
 {
     cart         = _cart;
     orderStage   = SspOrderStage.InProgress;
     paymentStage = SspPaymentStage.undefined;
     CalculateTotalPrice();
 }
Beispiel #2
0
        public void setPaymentMethod(string paymentMethod)
        {
            orderStage = SspOrderStage.WaitForPayment;
            switch (paymentMethod)
            {
            case "cash":
                paymentStage = SspPaymentStage.byCash;
                orderStage   = SspOrderStage.WaitForPayment;
                break;

            case "card":
                paymentStage = SspPaymentStage.byCard;
                orderStage   = SspOrderStage.WaitForPayment;
                break;

            default:
                paymentStage = SspPaymentStage.undefined;
                break;
            }
        }
 public SspPaymentService()
 {
     statusOrder = new SspOrderStage();
 }