coinswitch integration

This commit is contained in:
Kukks
2018-12-18 19:01:58 +01:00
parent c00c95efcf
commit 2b4603a234
9 changed files with 61 additions and 16 deletions

View File

@@ -1,4 +1,7 @@
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using BTCPayServer.Payments.CoinSwitch;
using Microsoft.AspNetCore.Mvc.Rendering;
namespace BTCPayServer.Models.StoreViewModels
{
@@ -7,6 +10,15 @@ namespace BTCPayServer.Models.StoreViewModels
public string MerchantId { get; set; }
public bool Enabled { get; set; }
[Display(Name = "Mode, Choose how to show CoinSwitch")]
public string Mode { get; set; } = "popup";
public List<SelectListItem> Modes { get; } = new List<SelectListItem>
{
new SelectListItem { Value = "popup", Text = "Open in a popup" },
new SelectListItem { Value = "inline", Text = "Embed inside Checkout UI " },
};
public string StatusMessage { get; set; }
}
}