btcpayserver/BTCPayServer/Services/Altcoins/Monero/Payments/MoneroSupportedPaymentMethod.cs
Henry Hollingworth c56c6401d6
(feat) monero settlement thresholds (#5807)
* (bug) treat xmr wallet directory as required

The wallet directory configuration setting is required
because the `UIMoneroLikeStoreController`'s
`GetMoneroLikePaymentMethodViewModel` method checks if the wallet file
exists, and to do that in needs the directory.

* (feat) xmr settlement thresholds

Adds the ability to select zero, 1, 10, or a custom number of
confirmations as the payment settlement threshold.

* (review) fix validation message not showing

---------

Co-authored-by: Henry Hollingworth <henry.hollingworth@alcoa.com>
2024-03-14 10:31:27 +01:00

17 lines
510 B
C#

#if ALTCOINS
using BTCPayServer.Payments;
using Newtonsoft.Json;
namespace BTCPayServer.Services.Altcoins.Monero.Payments
{
public class MoneroSupportedPaymentMethod : ISupportedPaymentMethod
{
public string CryptoCode { get; set; }
public long AccountIndex { get; set; }
public long? InvoiceSettledConfirmationThreshold { get; set; }
[JsonIgnore]
public PaymentMethodId PaymentId => new PaymentMethodId(CryptoCode, MoneroPaymentType.Instance);
}
}
#endif