mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 14:04:26 +01:00
BlockExplorer links should be using payment method ids (#6273)
This commit is contained in:
@@ -213,9 +213,7 @@ namespace BTCPayServer.Models.PaymentRequestViewModels
|
||||
}
|
||||
string txId = paymentEntity.Id;
|
||||
|
||||
// TODO: Move that in an extension
|
||||
var cryptoCode = handlers.TryGetNetwork(paymentMethodId)?.CryptoCode;
|
||||
string link = cryptoCode is null ? null : txLinkProvider.GetTransactionLink(cryptoCode, txId);
|
||||
string link = paymentMethodId is null ? null : txLinkProvider.GetTransactionLink(paymentMethodId, txId);
|
||||
|
||||
return new ViewPaymentRequestViewModel.PaymentRequestInvoicePayment
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user