//public Payment askPayment() // This function can't be implemented because of the UI's implementation, it should have asked for a payment type but it already knows this. // This starts the payment and checks if it's completed public bool processPayment(float Total) { payment = new Payment(paymentType); bool paymentComplete = payment.startPayment(Total); return(paymentComplete); }
public static void startTransaction(UIInfo info) { Ticket ticket = makeTicket(info.From, info.To, info.Class, info.Way); Payment.startPayment(ticket, info.Discount, info.Payment); }