diff --git a/BTCPayServer/Controllers/StoresController.cs b/BTCPayServer/Controllers/StoresController.cs index 4335336ea..8f267b8d2 100644 --- a/BTCPayServer/Controllers/StoresController.cs +++ b/BTCPayServer/Controllers/StoresController.cs @@ -891,7 +891,8 @@ namespace BTCPayServer.Controllers ButtonSize = 2, UrlRoot = appUrl, PayButtonImageUrl = appUrl + "img/paybutton/pay.png", - StoreId = store.Id + StoreId = store.Id, + ButtonType = 0 }; return View(model); } diff --git a/BTCPayServer/Models/StoreViewModels/PayButtonViewModel.cs b/BTCPayServer/Models/StoreViewModels/PayButtonViewModel.cs index 2c6687e93..27a649594 100644 --- a/BTCPayServer/Models/StoreViewModels/PayButtonViewModel.cs +++ b/BTCPayServer/Models/StoreViewModels/PayButtonViewModel.cs @@ -1,8 +1,5 @@ -using System; -using System.Collections.Generic; +using System.Collections.Generic; using System.ComponentModel.DataAnnotations; -using System.Linq; -using System.Threading.Tasks; using BTCPayServer.ModelBinders; using Microsoft.AspNetCore.Mvc; @@ -18,6 +15,7 @@ namespace BTCPayServer.Models.StoreViewModels public string CheckoutDesc { get; set; } public string OrderId { get; set; } public int ButtonSize { get; set; } + public int ButtonType { get; set; } [Url] public string ServerIpn { get; set; } [Url] diff --git a/BTCPayServer/Views/Stores/PayButton.cshtml b/BTCPayServer/Views/Stores/PayButton.cshtml index 215685018..eb0223a77 100644 --- a/BTCPayServer/Views/Stores/PayButton.cshtml +++ b/BTCPayServer/Views/Stores/PayButton.cshtml @@ -57,6 +57,17 @@ +