Allow merchant to customize their checkout page

This commit is contained in:
nicolas.dorier
2018-03-27 15:14:50 +09:00
parent a562e90bdb
commit 26aac66a76
10 changed files with 90 additions and 11 deletions

View File

@@ -30,6 +30,13 @@ namespace BTCPayServer.Models.StoreViewModels
[Display(Name = "Do not propose lightning payment if value of the invoice is above...")]
[MaxLength(20)]
public string LightningMaxValue { get; set; }
[Display(Name = "Link to a custom CSS stylesheet")]
[Url]
public Uri CustomCSS { get; set; }
[Display(Name = "Link to a custom logo")]
[Url]
public Uri CustomLogo { get; set; }
public void SetCryptoCurrencies(ExplorerClientProvider explorerProvider, string defaultCrypto)
{
var choices = explorerProvider.GetAll().Select(o => new Format() { Name = o.Item1.CryptoCode, Value = o.Item1.CryptoCode }).ToArray();