mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 22:14:26 +01:00
Bugfixing path to crypto image
Will need to move all these paths to absolute, rather than relative
This commit is contained in:
@@ -210,7 +210,7 @@ namespace BTCPayServer.Controllers
|
|||||||
return View(model);
|
return View(model);
|
||||||
}
|
}
|
||||||
|
|
||||||
//TODO: abstract
|
//TODO: abstract
|
||||||
private async Task<PaymentModel> GetInvoiceModel(string invoiceId, PaymentMethodId paymentMethodId)
|
private async Task<PaymentModel> GetInvoiceModel(string invoiceId, PaymentMethodId paymentMethodId)
|
||||||
{
|
{
|
||||||
var invoice = await _InvoiceRepository.GetInvoice(invoiceId);
|
var invoice = await _InvoiceRepository.GetInvoice(invoiceId);
|
||||||
@@ -324,7 +324,7 @@ namespace BTCPayServer.Controllers
|
|||||||
PaymentMethodName = availableCryptoHandler.GetPaymentMethodName(availableCryptoPaymentMethodId),
|
PaymentMethodName = availableCryptoHandler.GetPaymentMethodName(availableCryptoPaymentMethodId),
|
||||||
IsLightning =
|
IsLightning =
|
||||||
kv.GetId().PaymentType == PaymentTypes.LightningLike,
|
kv.GetId().PaymentType == PaymentTypes.LightningLike,
|
||||||
CryptoImage = Request.GetRelativePathOrAbsolute(availableCryptoHandler.GetCryptoImage(availableCryptoPaymentMethodId)),
|
CryptoImage = "/" + availableCryptoHandler.GetCryptoImage(availableCryptoPaymentMethodId),
|
||||||
Link = Url.Action(nameof(Checkout),
|
Link = Url.Action(nameof(Checkout),
|
||||||
new
|
new
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ namespace BTCPayServer.Payments.Bitcoin
|
|||||||
var network = _networkProvider.GetNetwork<BTCPayNetwork>(model.CryptoCode);
|
var network = _networkProvider.GetNetwork<BTCPayNetwork>(model.CryptoCode);
|
||||||
model.IsLightning = false;
|
model.IsLightning = false;
|
||||||
model.PaymentMethodName = GetPaymentMethodName(network);
|
model.PaymentMethodName = GetPaymentMethodName(network);
|
||||||
model.CryptoImage = GetCryptoImage(network);
|
model.CryptoImage = "/" + GetCryptoImage(network);
|
||||||
model.InvoiceBitcoinUrl = cryptoInfo.PaymentUrls.BIP21;
|
model.InvoiceBitcoinUrl = cryptoInfo.PaymentUrls.BIP21;
|
||||||
model.InvoiceBitcoinUrlQR = cryptoInfo.PaymentUrls.BIP21;
|
model.InvoiceBitcoinUrlQR = cryptoInfo.PaymentUrls.BIP21;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -207,7 +207,7 @@ namespace BTCPayServer.Payments.Lightning
|
|||||||
var network = _networkProvider.GetNetwork<BTCPayNetwork>(model.CryptoCode);
|
var network = _networkProvider.GetNetwork<BTCPayNetwork>(model.CryptoCode);
|
||||||
model.IsLightning = true;
|
model.IsLightning = true;
|
||||||
model.PaymentMethodName = GetPaymentMethodName(network);
|
model.PaymentMethodName = GetPaymentMethodName(network);
|
||||||
model.CryptoImage = GetCryptoImage(network);
|
model.CryptoImage = "/"+ GetCryptoImage(network);
|
||||||
model.InvoiceBitcoinUrl = cryptoInfo.PaymentUrls.BOLT11;
|
model.InvoiceBitcoinUrl = cryptoInfo.PaymentUrls.BOLT11;
|
||||||
model.InvoiceBitcoinUrlQR = cryptoInfo.PaymentUrls.BOLT11.ToUpperInvariant();
|
model.InvoiceBitcoinUrlQR = cryptoInfo.PaymentUrls.BOLT11.ToUpperInvariant();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user