Fix: Pay button shouldn't throw exception if currency isn't specific (#6324) (#6395)

This commit is contained in:
Nicolas Dorier 2024-11-13 16:25:23 +09:00 committed by GitHub
parent 088c0c7f85
commit 78f47516b8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -13,7 +13,6 @@ namespace BTCPayServer.Plugins.PayButton.Models
[ModelBinder(BinderType = typeof(InvariantDecimalModelBinder))]
public decimal? Price { get; set; }
public string InvoiceId { get; set; }
[Required]
public string Currency { get; set; }
public string DefaultPaymentMethod { get; set; }
public PaymentMethodOptionViewModel.Format[] PaymentMethods { get; set; }