public void Pay(Order order) { if (paypal.Authenticate("uCrm", "pw")) { var userName = Console.ReadLine(); var password = Console.ReadLine(); paypal.Pay(order.Amount, order.OrderId, userName, password); } }
/// <summary> /// Authentification of the client system(uCRM) /// </summary> /// <param name="clientId"></param> /// <param name="password"></param> /// <returns></returns> public bool Authenticate(string clientId, string password) { return(paypalSystem.Authenticate(clientId, password)); }