mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-27 07:57:33 +01:00
* (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>
17 lines
510 B
C#
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
|