48 lines
926 B
C#
48 lines
926 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Security.Cryptography.X509Certificates;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Fizetesek
|
|
{
|
|
internal class PayPalFizetes : FizetesMod, IAzonosit
|
|
{
|
|
public bool Azonosit()
|
|
{
|
|
Console.WriteLine("jelszót kérek a paypalba");
|
|
string beutottjelszo = Console.ReadLine();
|
|
|
|
if (beutottjelszo == "jelszo")
|
|
{
|
|
return true;
|
|
|
|
}
|
|
else
|
|
{
|
|
return false;
|
|
}
|
|
}
|
|
|
|
|
|
public override string Fizetes(int Osszeg)
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (Azonosit()) {
|
|
return ($"{Osszeg} összeg fizetve PayPalról");
|
|
}
|
|
else
|
|
{
|
|
return ("nem sikerült a bejelentkezés a Paypalba");
|
|
}
|
|
}
|
|
}
|
|
}
|