Browse Source

verify if pr has expired

283
ThomasV 11 years ago
parent
commit
6631ab9406
  1. 7
      gui/qt/main_window.py
  2. 6
      lib/paymentrequest.py

7
gui/qt/main_window.py

@ -1270,10 +1270,13 @@ class ElectrumWindow(QMainWindow):
pr = PaymentRequest(self.config)
pr.read_file(key)
pr.domain = domain
pr.verify()
self.gui_object.payment_request = pr
self.prepare_for_payment_request()
self.payment_request_ok()
if pr.verify():
self.payment_request_ok()
else:
self.payment_request_error()
def create_invoice_menu(self, position):
item = self.invoices_list.itemAt(position)

6
lib/paymentrequest.py

@ -259,9 +259,9 @@ class PaymentRequest:
self.payment_url = self.details.payment_url
#if self.has_expired():
# self.error = "ERROR: Payment Request has Expired."
# return False
if self.has_expired():
self.error = "ERROR: Payment Request has Expired."
return False
return True

Loading…
Cancel
Save