add beeteeceepae2 message to btcpay launch page & cleanup
This commit is contained in:
		@ -47,7 +47,6 @@ def validate_dollars():
 | 
			
		||||
@account_required
 | 
			
		||||
def btcpay_payment():
 | 
			
		||||
  errors = list()
 | 
			
		||||
  invoice_id = None
 | 
			
		||||
 | 
			
		||||
  if request.method == "POST":
 | 
			
		||||
    result = validate_dollars()
 | 
			
		||||
@ -67,18 +66,17 @@ def btcpay_payment():
 | 
			
		||||
      current_app.logger.info(f"created btcpay invoice: {invoice}")
 | 
			
		||||
 | 
			
		||||
      # print(invoice)
 | 
			
		||||
      invoice_id = invoice["id"]
 | 
			
		||||
 | 
			
		||||
      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)
 | 
			
		||||
 | 
			
		||||
      return redirect(invoice["url"])
 | 
			
		||||
 | 
			
		||||
  for error in errors:
 | 
			
		||||
    flash(error)
 | 
			
		||||
 | 
			
		||||
  return render_template("btcpay.html", invoice_id=invoice_id)
 | 
			
		||||
  return render_template("btcpay.html")
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def poll_btcpay_session(invoice_id):
 | 
			
		||||
 | 
			
		||||
@ -26,11 +26,11 @@
 | 
			
		||||
        name="dollars" 
 | 
			
		||||
        type="text" 
 | 
			
		||||
      />
 | 
			
		||||
      <input type="image" class="submit" name="submit" 
 | 
			
		||||
        src="https://btcpay.cyberia.club/img/paybutton/pay.svg" 
 | 
			
		||||
        style="width:168px" 
 | 
			
		||||
        alt="Pay with BtcPay"
 | 
			
		||||
      />
 | 
			
		||||
      <input type="submit" value="Pay with BtcPay"></button>
 | 
			
		||||
    </div>
 | 
			
		||||
    <div class="row">
 | 
			
		||||
      <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>
 | 
			
		||||
  </form>
 | 
			
		||||
</div>
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user