btcpayserver/BTCPayServer/Payments/Lightning/LightningLikePaymentMethodDetails.cs
Andrew Camilleri e3a0fe88c1
Fix LN invoices (#1955)
* Fix LN invoices

This commit adds more to the previous LN fix in the case of a partial payment to an invoice. While it generated a new LN invoice after 1 partial payment was made, there were some new issues uncovered:
* Any other subsequent partial payments was not listened to  and did not generate an invoice ( fixed by listeneing to received payment event and makng sure that the status was already set `to partialPaid`)
* Any other subsequent partial payments caused a DbConcurrency error and did not generate an invoice ( Fixed in `MarkUnassigned`)
2020-10-17 08:57:21 +02:00

29 lines
644 B
C#

namespace BTCPayServer.Payments.Lightning
{
public class LightningLikePaymentMethodDetails : IPaymentMethodDetails
{
public string BOLT11 { get; set; }
public string InvoiceId { get; set; }
public string NodeInfo { get; set; }
public string GetPaymentDestination()
{
return BOLT11;
}
public PaymentType GetPaymentType()
{
return PaymentTypes.LightningLike;
}
public decimal GetNextNetworkFee()
{
return 0.0m;
}
public decimal GetFeeRate()
{
return 0.0m;
}
}
}