38 lines
1.1 KiB
Plaintext
38 lines
1.1 KiB
Plaintext
<h3>BTCPay Server</h3>
|
|
<ul role="list">
|
|
<%= render FormElements::FieldsetToggleComponent.new(
|
|
form: f,
|
|
attribute: :btcpay_enabled,
|
|
enabled: Setting.btcpay_enabled?,
|
|
title: "Enable BTCPay integration",
|
|
description: "BTCPay configuration present and features enabled"
|
|
) %>
|
|
<% if Setting.btcpay_enabled? %>
|
|
<%= render FormElements::FieldsetResettableSettingComponent.new(
|
|
key: :btcpay_api_url,
|
|
title: "API URL"
|
|
) %>
|
|
<%= render FormElements::FieldsetResettableSettingComponent.new(
|
|
key: :btcpay_store_id,
|
|
title: "Store ID"
|
|
) %>
|
|
<%= render FormElements::FieldsetResettableSettingComponent.new(
|
|
key: :btcpay_auth_token,
|
|
type: :password,
|
|
title: "Auth Token"
|
|
) %>
|
|
</ul>
|
|
</section>
|
|
<section>
|
|
<h3>REST API</h3>
|
|
<ul role="list">
|
|
<%= render FormElements::FieldsetToggleComponent.new(
|
|
form: f,
|
|
attribute: :btcpay_publish_wallet_balances,
|
|
enabled: Setting.btcpay_publish_wallet_balances?,
|
|
title: "Publish wallet balances",
|
|
description: "Publish the store's on-chain and Lightning wallet balances"
|
|
) %>
|
|
<% end %>
|
|
</ul>
|