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) # 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) get_model().create_payment_session("btcpay", invoice["id"], session["account"], dollars)

View File

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