SatSale

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 76c00b1aacf2ac317cab967bc35e8579115d9cc3
parent 0874aee3d8b5d6088f602f3f0fd94c1174061b81
Author: NicholasFarrow <nicholas.w.farrow@gmail.com>
Date:   Mon, 28 Dec 2020 23:36:29 +1100

improve qr string to include amount and bitcoin url

Diffstat:
Minvoice/payment_invoice.py | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/invoice/payment_invoice.py b/invoice/payment_invoice.py @@ -21,6 +21,7 @@ class invoice: def create_qr(self): - img = qrcode.make(self.address) + qr_str = "bitcoin:{}?amount={}&label=".format(self.address, self.value, self.label) + img = qrcode.make(qr_str) img.save('static/qr_codes/{}.png'.format(self.uuid)) return