Re-enable lightning sats feature through C# (#1014)

This commit is contained in:
Andrew Camilleri
2019-09-11 07:49:06 +02:00
committed by Nicolas Dorier
parent e6cfb6e851
commit 7ab97311be
7 changed files with 41 additions and 28 deletions

View File

@@ -238,7 +238,6 @@ namespace BTCPayServer.Controllers
CustomCSSLink = storeBlob.CustomCSS?.AbsoluteUri,
CustomLogoLink = storeBlob.CustomLogo?.AbsoluteUri,
CryptoImage = Request.GetRelativePathOrAbsolute(paymentMethodHandler.GetCryptoImage(paymentMethodId)),
LightningAmountInSatoshi = storeBlob.LightningAmountInSatoshi,
BtcAddress = paymentMethodDetails.GetPaymentDestination(),
BtcDue = accounting.Due.ToString(),
OrderAmount = (accounting.TotalDue - accounting.NetworkFee).ToString(),
@@ -295,7 +294,7 @@ namespace BTCPayServer.Controllers
.ToList()
};
paymentMethodHandler.PreparePaymentModel(model, dto);
paymentMethodHandler.PreparePaymentModel(model, dto, storeBlob);
model.UISettings = paymentMethodHandler.GetCheckoutUISettings();
model.PaymentMethodId = paymentMethodId.ToString();
var expiration = TimeSpan.FromSeconds(model.ExpirationSeconds);