Add project files.

This commit is contained in:
tothgergo
2026-09-21 09:24:59 +02:00
parent de236f89fe
commit bb94627809
10 changed files with 266 additions and 0 deletions

View 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");
}
}
}
}