fix syntax error and beeteeceepae2 warning formatting

This commit is contained in:
forest 2021-07-07 21:12:31 -05:00
parent a08edd870f
commit 1e19902df1
2 changed files with 11 additions and 15 deletions

View File

@ -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)

View File

@ -12,26 +12,22 @@
<form method="POST" action="/payment/btcpay">
<div class="row">
<span>
<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>
<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>