mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-19 06:54:19 +01:00
Allow creating top-up invoice when min/max payment amount criteria is active
closes #2831
This commit is contained in:
committed by
Andrew Camilleri
parent
e584ebe7de
commit
522c990278
@@ -375,7 +375,7 @@ namespace BTCPayServer.Controllers
|
||||
}
|
||||
|
||||
var criteria = storeBlob.PaymentMethodCriteria?.Find(methodCriteria => methodCriteria.PaymentMethod == supportedPaymentMethod.PaymentId);
|
||||
if (criteria?.Value != null)
|
||||
if (criteria?.Value != null && entity.Type != InvoiceType.TopUp)
|
||||
{
|
||||
var currentRateToCrypto =
|
||||
await fetchingByCurrencyPair[new CurrencyPair(supportedPaymentMethod.PaymentId.CryptoCode, criteria.Value.Currency)];
|
||||
|
||||
Reference in New Issue
Block a user