Files
BTCPayServerPlugins/Plugins/BTCPayServer.Plugins.AOPP/Views/Shared/AOPP/CheckoutEnd.cshtml
2023-01-16 13:13:18 +01:00

14 lines
403 B
Plaintext

@using BTCPayServer.Plugins.AOPP
@using Newtonsoft.Json
@using Newtonsoft.Json.Linq
@inject AOPPService AOPPService
@{
var storeId = ((JObject)JObject.Parse(JsonConvert.SerializeObject(Model)))["StoreId"].Value<string>();
var settings = await AOPPService.GetAOPPForStore(storeId);
if (settings?.Enabled is true)
{
<script src="~/Resources/js/aoppComponent.js"></script>
}
}