Merge pull request #2113 from bolatovumar/feat/add-pull-payment-css

Add ability to add custom CSS to pull payments
This commit is contained in:
Nicolas Dorier
2020-12-09 21:33:16 +09:00
committed by GitHub
4 changed files with 29 additions and 6 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()
{