Pay Button with a QR code
See original GitHub issueHi people i love your project i have BTCPay server running on my raspberrypi i am very excited!!
I have the desire for a feature that I think might be interesting for many!
For me as a freelancer who also prints invoices on paper or sends them by mail it would be a great feature if you could equip the Pay Button with a QR code, which creates an invoice for me directly at the time the customer scans the QR code.
At the moment I help myself with an intermediate step, by copying the code from the pay button on my server and scanning it there with a QR code generated by me on the invoice, which then leads/calls me to this html code. That looks something like this:
<form name="myform" method="POST" action="https://xxx.xxx.xxx.xxx/api/v1/invoices">
<input type="hidden" name="storeId" value="####mystore###" />'
<input type="hidden" name="price" value="12,34" />
<input type="hidden" name="currency" value="EUR" />
<input type="hidden" name="checkoutDesc" value="Bill No. />
<input type="hidden" name="orderId" value="2" />
<input type="hidden" name="notifyEmail" value="xxx@xxx.biz" />
</form>
<script type="text/javascript">
document.myform.submit();
</script>
This works well, but unfortunately it is a bit complicated, because a lot has to be edited by hand.
What I imagine would be the generation of a QR code with BTCPay server logo in the middle which directly calls this code on top of the server itself without the intermediate step…
I have dream 😃
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:12 (9 by maintainers)
Top GitHub Comments
Behold!
Why not just make the payment request URL into a QR code and send that? Then the user is taken to the payment request, rates are current when they pay, and there is no address reuse.