define BTCPAY_ENABLED based on URL and btcpay key, pass it explicitly

This commit is contained in:
2021-07-21 12:12:41 -05:00
parent 7ed847251f
commit 36329796f0
4 changed files with 11 additions and 11 deletions

View File

@ -46,7 +46,7 @@
<a href="/payment/stripe">Add funds with Credit/Debit (stripe)</a>
<ul><li>notice: stripe will load nonfree javascript </li></ul>
</li>
{% if config['BTCPAY_PRIVATE_KEY'] != "" %}
{% if btcpay_enabled %}
<li><a href="/payment/btcpay">Add funds with Bitcoin/Litecoin/Monero (btcpay)</a></li>
{% endif %}