From ce6c9c91fc4ad550b38e19fdec73c727094cbf10 Mon Sep 17 00:00:00 2001 From: Kukks Date: Sat, 20 Mar 2021 06:52:18 +0100 Subject: [PATCH] Make sure payment method uppercase logic only happens for BTC --- BTCPayServer/Payments/Bitcoin/BitcoinLikePaymentHandler.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BTCPayServer/Payments/Bitcoin/BitcoinLikePaymentHandler.cs b/BTCPayServer/Payments/Bitcoin/BitcoinLikePaymentHandler.cs index f883ebcf0..d4ce9ad3d 100644 --- a/BTCPayServer/Payments/Bitcoin/BitcoinLikePaymentHandler.cs +++ b/BTCPayServer/Payments/Bitcoin/BitcoinLikePaymentHandler.cs @@ -82,7 +82,7 @@ namespace BTCPayServer.Payments.Bitcoin // + lightningFallback.ToUpperInvariant().Replace("LIGHTNING=", "lightning=", StringComparison.OrdinalIgnoreCase); // We're leading the way in Bitcoin community with adding UPPERCASE Bech32 addresses in QR Code - if (_bech32Prefix.TryGetValue(model.CryptoCode, out var prefix) && model.BtcAddress.StartsWith(prefix, StringComparison.OrdinalIgnoreCase)) + if (network.CryptoCode.Equals("BTC", StringComparison.InvariantCultureIgnoreCase) && _bech32Prefix.TryGetValue(model.CryptoCode, out var prefix) && model.BtcAddress.StartsWith(prefix, StringComparison.OrdinalIgnoreCase)) { model.InvoiceBitcoinUrlQR = model.InvoiceBitcoinUrlQR.Replace( $"{network.UriScheme}:{model.BtcAddress}", $"{network.UriScheme}:{model.BtcAddress.ToUpperInvariant()}",