Золотов- Лабораторная работа #1

Hope, you can eliminate this `if` with polymorphism (e.g. interface + 2 implementations for payment or other type).