Add ability to associate custom CSS with a pull payment

This commit is contained in:
Umar Bolatov
2020-12-07 20:04:50 -08:00
parent 8a07c62603
commit 16e5e2d757
4 changed files with 28 additions and 4 deletions

View File

@@ -30,7 +30,9 @@ namespace BTCPayServer.Controllers
return View(new NewPullPaymentModel()
{
Name = "",
Currency = "BTC"
Currency = "BTC",
CustomCSSLink = "",
EmbeddedCSS = "",
});
}
@@ -65,7 +67,9 @@ namespace BTCPayServer.Controllers
Amount = model.Amount,
Currency = model.Currency,
StoreId = walletId.StoreId,
PaymentMethodIds = new[] { paymentMethodId }
PaymentMethodIds = new[] { paymentMethodId },
EmbeddedCSS = model.EmbeddedCSS,
CustomCSSLink = model.CustomCSSLink
});
this.TempData.SetStatusMessageModel(new StatusMessageModel()
{