From 753cb42b8c421058f037ebf519f8c2e477a8a2a4 Mon Sep 17 00:00:00 2001 From: CWX Date: Thu, 23 Jan 2025 13:39:22 +0000 Subject: [PATCH] finish off payment helper --- Libraries/Core/Helpers/PaymentHelper.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Libraries/Core/Helpers/PaymentHelper.cs b/Libraries/Core/Helpers/PaymentHelper.cs index ab121852..33ea966c 100644 --- a/Libraries/Core/Helpers/PaymentHelper.cs +++ b/Libraries/Core/Helpers/PaymentHelper.cs @@ -36,6 +36,13 @@ public class PaymentHelper(ConfigServer _configServer) /// public string GetCurrency(string currency) { - throw new NotImplementedException(); + return currency switch + { + "EUR" => Money.EUROS, + "USD" => Money.DOLLARS, + "RUB" => Money.ROUBLES, + "GP" => Money.GP, + _ => "" + }; } }