SatSale

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

commit 352ad9b2b8135b8f3319ddde80c264e7e9960250
parent efdaec88e6b9dc89152a3c0108064c31671efbde
Author: nickfarrow <nick@nickfarrow.com>
Date:   Tue, 25 May 2021 23:50:33 +1000

Move invoice creation functions

Diffstat:
Mpay/bitcoind.py | 2++
Mpay/lnd.py | 2++
Msatsale.py | 3---
3 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/pay/bitcoind.py b/pay/bitcoind.py @@ -54,6 +54,8 @@ class btcd(): self.unconfirmed_paid = 0 self.paid = False self.txid = "" + self.get_address() + self.create_qr() return def create_qr(self): diff --git a/pay/lnd.py b/pay/lnd.py @@ -74,6 +74,8 @@ class lnd(): self.unconfirmed_paid = 0 self.paid = False self.txid = "" + self.get_address() + self.create_qr() return def create_qr(self): diff --git a/satsale.py b/satsale.py @@ -158,9 +158,6 @@ def create_invoice(dollar_amount, currency, label, payment_method=config.pay_met # Load invoice information payment.invoice(dollar_amount, currency, label) - # Get payment address and generate qr code. - payment.get_address() - payment.create_qr() return payment