only show coinbase option for user who has can_use_coinbase=True

This commit is contained in:
Son NK 2020-12-13 19:28:46 +01:00
parent 1961d2f18e
commit 1348b58672
1 changed files with 18 additions and 12 deletions

View File

@ -64,7 +64,8 @@
<div class="col-sm-6 col-lg-6">
<div class="display-6 my-3">
🔐 Secure payments by
<a href="https://paddle.com" target="_blank" rel="noopener">Paddle<i class="fe fe-external-link"></i></a></li>
<a href="https://paddle.com" target="_blank" rel="noopener">
Paddle<i class="fe fe-external-link"></i>
</a>
</div>
@ -93,18 +94,23 @@
$30/year
</button>
<hr>
Payment via <a href="https://commerce.coinbase.com/?lang=en" target="_blank">Coinbase Commerce</a>.
Only the yearly plan is supported.
{% if current_user.can_use_coinbase %}
<hr>
Payment via
<a href="https://commerce.coinbase.com/?lang=en" target="_blank">
Coinbase Commerce<i class="fe fe-external-link"></i>
</a> <br>
Only the yearly plan is supported.
<div>
<a class="buy-with-crypto" data-custom="{{ current_user.id }}"
href="{{ coinbase_url }}">
Yearly - $30/year - Crypto
</a>
<script src="https://commerce.coinbase.com/v1/checkout.js?version=201807">
</script>
</div>
<div>
<a class="buy-with-crypto" data-custom="{{ current_user.id }}"
href="{{ coinbase_url }}">
Yearly - $30/year - Crypto
</a>
<script src="https://commerce.coinbase.com/v1/checkout.js?version=201807">
</script>
</div>
{% endif %}
<hr>
For other payment options, please send us an email at <a href="mailto:hi@simplelogin.io">hi@simplelogin.io</a>