Implement topup invoices (#2730)

This commit is contained in:
Nicolas Dorier
2021-08-03 17:03:00 +09:00
committed by GitHub
parent 63d4ccc058
commit 4c818d0359
26 changed files with 288 additions and 51 deletions

View File

@@ -51,7 +51,7 @@ namespace BTCPayServer.ModelBinders
// Parse() method trims the value (with common NumberStyles) then throws if the result is empty.
model = null;
}
else if (type == typeof(decimal))
else if (type == typeof(decimal) || type == typeof(decimal?))
{
model = decimal.Parse(value, _supportedStyles, culture);
}