Add project files.
This commit is contained in:
47
Fizetesek/PayPalFizetes.cs
Normal file
47
Fizetesek/PayPalFizetes.cs
Normal file
@@ -0,0 +1,47 @@
|
||||
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");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user