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

15 lines
579 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)
{
<div class="payment-tabs__tab" id="AOPP-tab" v-on:click="switchTab('AOPP')" v-bind:class="{ 'active': currentTab == 'AOPP'}" v-if="srvModel.paymentMethodId.indexOf('_') === -1">
<span>{{$t("AOPP")}}</span>
</div>
}
}