Fix PoS decimal issue (Fix #747)

This commit is contained in:
nicolas.dorier
2019-04-09 11:10:27 +09:00
parent 66e7777b1a
commit 2ca11ed692

View File

@@ -9,6 +9,7 @@ using System.Threading;
using System.Threading.Tasks; using System.Threading.Tasks;
using BTCPayServer.Data; using BTCPayServer.Data;
using BTCPayServer.Filters; using BTCPayServer.Filters;
using BTCPayServer.ModelBinders;
using BTCPayServer.Models; using BTCPayServer.Models;
using BTCPayServer.Models.AppViewModels; using BTCPayServer.Models.AppViewModels;
using BTCPayServer.Payments; using BTCPayServer.Payments;
@@ -212,7 +213,7 @@ namespace BTCPayServer.Controllers
[IgnoreAntiforgeryToken] [IgnoreAntiforgeryToken]
[EnableCors(CorsPolicies.All)] [EnableCors(CorsPolicies.All)]
public async Task<IActionResult> ViewPointOfSale(string appId, public async Task<IActionResult> ViewPointOfSale(string appId,
decimal amount, [ModelBinder(typeof(InvariantDecimalModelBinder))] decimal amount,
string email, string email,
string orderId, string orderId,
string notificationUrl, string notificationUrl,