mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-22 06:21:44 +01:00
fix tests
This commit is contained in:
parent
640ff36fa2
commit
58b994e043
1 changed files with 6 additions and 5 deletions
|
@ -415,14 +415,15 @@ namespace BTCPayServer.Services.Invoices
|
|||
#pragma warning restore CS0618
|
||||
dto.CryptoInfo.Add(cryptoInfo);
|
||||
|
||||
dto.PaymentSubtotals.Add(cryptoCode, subtotalPrice.Satoshi);
|
||||
dto.PaymentTotals.Add(cryptoCode, accounting.TotalDue.Satoshi);
|
||||
dto.SupportedTransactionCurrencies.Add(cryptoCode, new InvoiceSupportedTransactionCurrency()
|
||||
dto.PaymentCodes.Add(paymentId.ToString(), cryptoInfo.PaymentUrls);
|
||||
dto.PaymentSubtotals.Add(paymentId.ToString(), subtotalPrice.Satoshi);
|
||||
dto.PaymentTotals.Add(paymentId.ToString(), accounting.TotalDue.Satoshi);
|
||||
dto.SupportedTransactionCurrencies.TryAdd(cryptoCode, new InvoiceSupportedTransactionCurrency()
|
||||
{
|
||||
Enabled = true
|
||||
});
|
||||
dto.Addresses.Add(cryptoCode, address);
|
||||
dto.ExchangeRates.Add(cryptoCode, exrates);
|
||||
dto.Addresses.Add(paymentId.ToString(), address);
|
||||
dto.ExchangeRates.TryAdd(cryptoCode, exrates);
|
||||
}
|
||||
|
||||
//dto.AmountPaid dto.MinerFees & dto.TransactionCurrency are not supported by btcpayserver as we have multi currency payment support per invoice
|
||||
|
|
Loading…
Add table
Reference in a new issue