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

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