More work on Payment Points

This commit is contained in:
Rick Falkvinge
2019-02-25 16:10:48 +01:00
parent b2f1752a2a
commit 9a5a47f8d0
2 changed files with 15 additions and 4 deletions
@@ -49,7 +49,7 @@ namespace Swarmops.Frontend.Pages.Financial
continue;
}
if (bitcoinHotWalletActive && payout.Account.StartsWith ("bitcoin:"))
if (bitcoinHotWalletActive && payout.Account.StartsWith ("bitcoin"))
{
// This is a payout registered to be paid in bitcoin, so don't show for manual payout
+14 -3
View File
@@ -1,4 +1,5 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Resources;
using System.Security;
@@ -182,12 +183,22 @@ namespace Swarmops.Frontend.Pages.Financial
DisplayMessage = string.Empty,
Recipient = info.Recipient,
Reference = info.Reference,
TransferMethod = info.LocalizedPaymentMethodName,
TransferMethod = info.LocalizedPaymentMethodName
};
return result;
List<string> listTransferMethodLabels = new List<string>();
List<string> listTransferMethodData = new List<string>();
// TODO: Continue with adding localized fields
foreach (string label in info.LocalizedPaymentInformation.Keys)
{
listTransferMethodLabels.Add(label);
listTransferMethodData.Add(info.LocalizedPaymentInformation [label]);
}
result.TransferMethodLabels = listTransferMethodLabels.ToArray();
result.TransferMethodData = listTransferMethodData.ToArray();
return result;
}