Files
btcpayserver/BTCPayServer/Payments/PaymentTypes.cs
Nicolas Dorier a3cfb9e5e4 Removal of the Altcoins build (#6177)
* Remove some useless #if ALTCOINS

* Removal of the Altcoins build
2024-08-30 08:34:23 +09:00

25 lines
710 B
C#

#nullable enable
namespace BTCPayServer.Payments
{
public static class PaymentTypes
{
public static readonly PaymentType CHAIN = new("CHAIN");
public static readonly PaymentType LN = new("LN");
public static readonly PaymentType LNURL = new("LNURL");
}
public class PaymentType
{
private readonly string _paymentType;
public PaymentType(string paymentType)
{
_paymentType = paymentType;
}
public PaymentMethodId GetPaymentMethodId(string cryptoCode) => new ($"{cryptoCode.ToUpperInvariant()}-{_paymentType}");
public override string ToString()
{
return _paymentType;
}
}
}