Browse Source

fix syntax error and beeteeceepae2 warning formatting

asd
forest 7 months ago
parent
commit
1e19902df1
  1. 2
      capsulflask/payment.py
  2. 24
      capsulflask/templates/btcpay.html

2
capsulflask/payment.py

@ -67,7 +67,7 @@ def btcpay_payment():
# print(invoice)
current_app.logger.info(f"created btcpay invoice_id={invoice["id"]} ( {session['account']}, ${dollars} )")
current_app.logger.info(f"created btcpay invoice_id={invoice['id']} ( {session['account']}, ${dollars} )")
get_model().create_payment_session("btcpay", invoice["id"], session["account"], dollars)

24
capsulflask/templates/btcpay.html

@ -12,25 +12,21 @@
<form method="POST" action="/payment/btcpay">
<div class="row">
<label for="btcpay-input-price">$</label>
<!--TODO-- <input
id="btcpay-input-price"
name="price"
type="number"
min="0"
max="2000"
oninput="event.preventDefault();isNaN(event.target.value) || event.target.value <= 0 ? document.querySelector('#btcpay-input-price').value = 0 : event.target.value"
/>-->
<input
id="btcpay-input-price"
name="dollars"
type="text"
/>
<span>
<label for="btcpay-input-price">$</label>
<input
id="btcpay-input-price"
name="dollars"
type="text"
/>
</span>
<input type="submit" value="Pay with BtcPay"></button>
</div>
<div class="row">
<div>
<p>NOTE: for now we have switched over to our beta BTCPay Server instance at https://beeteeceepae2.cyberia.club</p>
<p>In the future we'll migrate the DNS back over to btcpay.cyberia.club but for now this is easier.</p>
</div>
</div>
</form>
</div>

Loading…
Cancel
Save