Server side validation of PayButton POST

This commit is contained in:
rockstardev
2018-08-17 13:21:00 +02:00
parent 74ddcfa01e
commit 0084d4766b
4 changed files with 48 additions and 7 deletions

View File

@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
@@ -8,6 +9,7 @@ namespace BTCPayServer.Models.AppViewModels
public class PayButtonViewModel
{
public decimal Price { get; set; }
[Required]
public string Currency { get; set; }
public string CheckoutDesc { get; set; }
public string OrderId { get; set; }