mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 14:04:26 +01:00
Only show Order Amount in Fiat if Invoice is created with fiat value
This commit is contained in:
@@ -297,6 +297,13 @@ namespace BTCPayServer.Controllers
|
||||
}
|
||||
private string OrderAmountFiat(ProductInformation productInformation)
|
||||
{
|
||||
// check if invoice source currency is crypto... if it is there is no "order amount in fiat"
|
||||
foreach (var net in _NetworkProvider.GetAll())
|
||||
{
|
||||
if (net.CryptoCode == productInformation.Currency)
|
||||
return null;
|
||||
}
|
||||
|
||||
return FormatCurrency(productInformation.Price, productInformation.Currency);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user