Add ability to set default currency for a store (#2998)

This commit is contained in:
Nicolas Dorier
2021-10-20 23:17:40 +09:00
committed by GitHub
parent 407f26b1dc
commit 4cf3249e0b
17 changed files with 129 additions and 64 deletions

View File

@@ -163,11 +163,6 @@ namespace BTCPayServer.Controllers.GreenField
{
ModelState.AddModelError(nameof(request.Amount), "The amount should be 0 or more.");
}
if (string.IsNullOrEmpty(request.Currency))
{
ModelState.AddModelError(nameof(request.Currency), "Currency is required");
}
request.Checkout = request.Checkout ?? new CreateInvoiceRequest.CheckoutOptions();
if (request.Checkout.PaymentMethods?.Any() is true)
{