Beispiel #1
0
        public double PayWithCard(string username)
        {
            double insertedMoney = CardPayment.Pay(username);

            HandlePayment(insertedMoney);
            return(insertedMoney);
        }
Beispiel #2
0
 public Payment()
 {
     CashPayment = new CashPayment(this);
     CardPayment = new CardPayment(this);
 }