make lightning scheme lowercase (Fix #1091)

This commit is contained in:
nicolas.dorier 2019-10-17 00:52:19 +09:00
parent e68d76b56d
commit cd5cc6435c
No known key found for this signature in database
GPG key ID: 6618763EF09186FE

View file

@ -176,7 +176,7 @@ namespace BTCPayServer.Payments.Lightning
model.IsLightning = true;
model.PaymentMethodName = GetPaymentMethodName(network);
model.InvoiceBitcoinUrl = cryptoInfo.PaymentUrls.BOLT11;
model.InvoiceBitcoinUrlQR = cryptoInfo.PaymentUrls.BOLT11.ToUpperInvariant();
model.InvoiceBitcoinUrlQR = $"lightning:{cryptoInfo.PaymentUrls.BOLT11.ToUpperInvariant().Substring("LIGHTNING:".Length)}";
model.LightningAmountInSatoshi = storeBlob.LightningAmountInSatoshi;
if (storeBlob.LightningAmountInSatoshi && model.CryptoCode == "BTC" )
{