Pay button was not working properly if the server was not en-US (Fix #638)

This commit is contained in:
nicolas.dorier
2019-03-09 23:40:22 +09:00
parent baecb7bb0c
commit 7497865d1f
2 changed files with 102 additions and 0 deletions

View File

@@ -3,11 +3,14 @@ using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using BTCPayServer.ModelBinders;
using Microsoft.AspNetCore.Mvc;
namespace BTCPayServer.Models.StoreViewModels
{
public class PayButtonViewModel
{
[ModelBinder(BinderType = typeof(InvariantDecimalModelBinder))]
public decimal Price { get; set; }
public string InvoiceId { get; set; }
[Required]