mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-24 06:47:50 +01:00
38 lines
801 B
C#
38 lines
801 B
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using System.Threading.Tasks;
|
|||
|
|
|||
|
namespace BTCPayServer.Payments.Lightning
|
|||
|
{
|
|||
|
public class LightningLikePaymentMethodDetails : IPaymentMethodDetails
|
|||
|
{
|
|||
|
public string BOLT11 { get; set; }
|
|||
|
public string InvoiceId { get; set; }
|
|||
|
|
|||
|
public string GetPaymentDestination()
|
|||
|
{
|
|||
|
return BOLT11;
|
|||
|
}
|
|||
|
|
|||
|
public PaymentTypes GetPaymentType()
|
|||
|
{
|
|||
|
return PaymentTypes.LightningLike;
|
|||
|
}
|
|||
|
|
|||
|
public decimal GetTxFee()
|
|||
|
{
|
|||
|
return 0.0m;
|
|||
|
}
|
|||
|
|
|||
|
public void SetNoTxFee()
|
|||
|
{
|
|||
|
}
|
|||
|
|
|||
|
public void SetPaymentDestination(string newPaymentDestination)
|
|||
|
{
|
|||
|
BOLT11 = newPaymentDestination;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|