mirror of
https://github.com/aljazceru/BTCPayServerPlugins.git
synced 2025-12-16 23:24:25 +01:00
20 lines
907 B
Plaintext
20 lines
907 B
Plaintext
@using BTCPayServer.Plugins.FixedFloat
|
|
@model BTCPayServer.Models.InvoicingModels.PaymentModel
|
|
@inject FixedFloatService FixedFloatService
|
|
@{
|
|
var storeId = Model.StoreId;
|
|
var settings = await FixedFloatService.GetFixedFloatForStore(storeId);
|
|
|
|
if (settings?.Enabled is true)
|
|
{
|
|
<div id="FixedFloat" class="bp-view payment manual-flow" style="padding:0" :class="{ active: currentTab == 'undefined' || currentTab == 'FixedFloat' }">
|
|
<fixed-float inline-template
|
|
:to-currency="srvModel.paymentMethodId"
|
|
:to-currency-due="srvModel.btcDue * (1 + (@settings.AmountMarkupPercentage / 100)) "
|
|
:to-currency-address="srvModel.btcAddress">
|
|
<iframe :src="url" style="min-height:600px;width:100%;border:none" allowtransparency="true"></iframe>
|
|
</fixed-float>
|
|
</div>
|
|
}
|
|
}
|