PayButton(bool enableStore)
+ {
+ var blob = StoreData.GetStoreBlob();
+ blob.PayButtonEnabled = enableStore;
+ if (StoreData.SetStoreBlob(blob))
+ {
+ await _Repo.UpdateStore(StoreData);
+ StatusMessage = "Store successfully updated";
+ }
+
+ return RedirectToAction(nameof(PayButton), new
+ {
+ storeId = StoreData.Id
+ });
+
+ }
}
}
diff --git a/BTCPayServer/Views/Stores/PayButton.cshtml b/BTCPayServer/Views/Stores/PayButton.cshtml
index 98b319125..b2049ec92 100644
--- a/BTCPayServer/Views/Stores/PayButton.cshtml
+++ b/BTCPayServer/Views/Stores/PayButton.cshtml
@@ -1,7 +1,8 @@
@model PayButtonViewModel
@{
Layout = "../Shared/_NavLayout.cshtml";
- ViewData.SetActivePageAndTitle(StoreNavPages.PayButton, "Pay Button");
+ ViewData.SetActivePageAndTitle(StoreNavPages.PayButton);
+ ViewBag.MainTitle = "Pay Button";
}