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