mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-28 08:54:13 +01:00
* 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`)
29 lines
644 B
C#
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;
|
|
}
|
|
}
|
|
}
|